Overture  Version 25
Macros
SparseRep.C File Reference
#include "SparseRep.h"
#include "MappedGrid.h"
#include "display.h"
#include "ParallelUtility.h"
Include dependency graph for SparseRep.C:

Macros

#define MN(m, n)   (n)+(m)*numberOfComponents
 
#define M123(m1, m2, m3)   (m1+halfWidth1+width*(m2+halfWidth2+width*(m3+halfWidth3)))
 
#define M123N(m1, m2, m3, n)   (M123(m1,m2,m3)+stencilSize*(n))
 
#define ForStencil(m1, m2, m3)
 
#define ForStencilN(n, m1, m2, m3)
 
#define CE(c, e)   (stencilSize*((c)+numberOfComponents*(e)))
 
#define M123CE(m1, m2, m3, c, e)   (M123(m1,m2,m3)+CE(c,e))
 
#define ForBoundary(side, axis)
 

Macro Definition Documentation

#define CE (   c,
 
)    (stencilSize*((c)+numberOfComponents*(e)))
#define ForBoundary (   side,
  axis 
)
Value:
for( axis=0; axis<c.numberOfDimensions(); axis++ ) \
for( side=0; side<=1; side++ )

Referenced by SparseRepForMGF::fixUpClassify().

#define ForStencil (   m1,
  m2,
  m3 
)
Value:
for( m3=-halfWidth3; m3<=halfWidth3; m3++) \
for( m2=-halfWidth2; m2<=halfWidth2; m2++) \
for( m1=-halfWidth1; m1<=halfWidth1; m1++)

Referenced by SparseRepForMGF::updateToMatchGrid().

#define ForStencilN (   n,
  m1,
  m2,
  m3 
)
Value:
for( n=0; n<numberOfComponents; n++) \
for( m3=-halfWidth3; m3<=halfWidth3; m3++) \
for( m2=-halfWidth2; m2<=halfWidth2; m2++) \
for( m1=-halfWidth1; m1<=halfWidth1; m1++)
#define M123 (   m1,
  m2,
  m3 
)    (m1+halfWidth1+width*(m2+halfWidth2+width*(m3+halfWidth3)))
#define M123CE (   m1,
  m2,
  m3,
  c,
 
)    (M123(m1,m2,m3)+CE(c,e))
#define M123N (   m1,
  m2,
  m3,
 
)    (M123(m1,m2,m3)+stencilSize*(n))
#define MN (   m,
 
)    (n)+(m)*numberOfComponents