FEAT
3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
mirror_block_gather_generic.hpp
1
// FEAT3: Finite Element Analysis Toolbox, Version 3
2
// Copyright (C) 2010 by Stefan Turek & the FEAT group
3
// FEAT3 is released under the GNU General Public License version 3,
4
// see the file 'copyright.txt' in the top level directory for details.
5
6
#pragma once
7
8
#ifndef KERNEL_LAFEM_ARCH_MIRROR_BLOCK_GATHER_HPP
9
#error "Do not include this implementation-only header file directly!"
10
#endif
11
12
namespace
FEAT::LAFEM::Arch
13
{
14
template
<
typename
DT_,
typename
IT_>
15
void
MirrorBlockGather::exec_generic_impl(
const
Index
bs,
const
Index
boff,
const
Index
nidx,
const
IT_* idx, DT_* buf,
const
DT_* vec)
16
{
17
FEAT_PRAGMA_OMP(parallel
for
)
18
for
(
Index
i = 0; i < nidx; ++i)
19
{
20
for
(
Index
k(0); k < bs; ++k)
21
{
22
buf[boff+i*bs+k] = vec[idx[i]*bs+k];
23
}
24
}
25
}
26
}
// namespace FEAT::LAFEM::Arch
FEAT::Index
std::uint64_t Index
Index data type.
Definition:
base_header.hpp:130
kernel
lafem
arch
mirror_block_gather_generic.hpp
Generated by
1.9.5