11 #ifndef _INDICESFUNCTIONS_H_ 12 #define _INDICESFUNCTIONS_H_ 16 #include "NamespaceHeader.H" 46 size_t indRemaining = a_ind;
49 iv[idir] = indRemaining % a_dims[idir];
50 indRemaining -= iv[idir];
51 indRemaining /= a_dims[idir];
53 iv[CH_SPACEDIM-1] = indRemaining;
72 #include "NamespaceFooter.H" IntVect size() const
size functions
Definition: Box.H:1803
#define CH_SPACEDIM
Definition: SPACE.H:51
#define CH_assert(cond)
Definition: CHArray.H:37
bool isSignVect(const IntVect &a_sign)
IntVect inversePermutation(const IntVect &a_permutation)
size_t FortranArrayIndex(IntVect a_iv, IntVect a_dims)
Definition: IndicesFunctions.H:18
bool isPermutationVect(const IntVect &a_permutation)
const IntVect & smallEnd() const
{ Accessors}
Definition: Box.H:1754
static const IntVect Zero
Definition: IntVect.H:654
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
bool inDimensionRange(int a_ind)
Definition: IndicesFunctions.H:67
An integer Vector in SpaceDim-dimensional space.
Definition: CHArray.H:42