Peano
Loading...
Searching...
No Matches
MusclHancock_Helper.cpph
Go to the documentation of this file.
1
2namespace {
18 #if defined(GPUOffloadingOMP)
19 #pragma omp declare target
20 #endif
21 tarch::la::Vector<Dimensions,int> volumeIndex2d( int x, int y ) InlineMethod {
23 result(0) = x;
24 result(1) = y;
25 return result;
26 }
27
28 tarch::la::Vector<Dimensions,int> volumeIndex3d( int x, int y, int z ) InlineMethod {
30 result(0) = x;
31 result(1) = y;
32 result(2) = z;
33 return result;
34 }
35 #if defined(GPUOffloadingOMP)
36 #pragma omp end declare target
37 #endif
38}
Simple vector class.
Definition Vector.h:150
#define InlineMethod
Generic identifier for inlined functions.
Definition tarch.h:66