Overture  Version 25
Macros | Functions
gridOpt.C File Reference
#include "GL_GraphicsInterface.h"
#include "CompositeGrid.h"
#include "PlotIt.h"
#include "xColours.h"
#include "ParallelUtility.h"
Include dependency graph for gridOpt.C:

Macros

#define MASK_CNR(i1, i2, i3)   (MASK(i1,i2,i3) && !(MASK(i1,i2,i3) & isHiddenByRefinement))
 
#define MASK_DNR(i1, i2, i3)   (MASK(i1,i2,i3)>0 && !(MASK(i1,i2,i3) & isHiddenByRefinement))
 
#define FOR_3(i1, i2, i3, I1, I2, I3)   for( i3=I3.getBase(); i3<=I3.getBound(); i3++ ) for( i2=I2.getBase(); i2<=I2.getBound(); i2++ ) for( i1=I1.getBase(); i1<=I1.getBound(); i1++ )
 
#define FOR_3WithStride(i1, i2, i3, m1, m2, m3, I1, I2, I3)   i1Bound=I1.getBound(); i2Bound=I2.getBound(); i3Bound=I3.getBound(); for( i3=I3.getBase(); i3<=i3Bound; i3+=m3 ) for( i2=I2.getBase(); i2<=i2Bound; i2+=m2 ) for( i1=I1.getBase(); i1<=i1Bound; i1+=m1 )
 
#define ForBoundary(side, axis)   for( axis=0; axis<gc.numberOfDimensions(); axis++ ) for( side=0; side<=1; side++ )
 
#define XSCALE(x)   (psp.xScaleFactor*(x))
 
#define YSCALE(y)   (psp.yScaleFactor*(y))
 
#define ZSCALE(z)   (psp.zScaleFactor*(z))
 
#define MASK(i0, i1, i2)   maskp[i0+maskDim0*(i1+maskDim1*(i2))]
 
#define CENTER0(i0, i1, i2)   XSCALE(centerp[i0+centerDim0*(i1+centerDim1*(i2+centerDim2*(0)))])
 
#define CENTER1(i0, i1, i2)   YSCALE(centerp[i0+centerDim0*(i1+centerDim1*(i2+centerDim2*(1)))])
 
#define IP(i0, i1)   ipp[i0+ipDim0*(i1)]
 
#define INTERPOLEEGRID(i0)   interpoleeGridp[i0]
 
#define MASK(i0, i1, i2)   maskp[i0+maskDim0*(i1+maskDim1*(i2))]
 
#define MASK(i0, i1, i2)   maskp[i0+maskDim0*(i1+maskDim1*(i2))]
 
#define VERTEX0(i0, i1, i2)   XSCALE((xa+dx0*(i0-i0a)))
 
#define VERTEX1(i0, i1, i2)   YSCALE((ya+dy0*(i1-i1a)))
 
#define VERTEX2(i0, i1, i2)   ZSCALE((za+dz0*(i2-i2a)))
 
#define CMASK(i0, i1, i2)   cMaskp[i0+cMaskDim0*(i1+cMaskDim1*(i2))]
 
#define CENTER0(i0, i1, i2)   XSCALE(xa+dx0*(i0-i0a))
 
#define CENTER1(i0, i1, i2)   YSCALE(ya+dy0*(i1-i1a))
 
#define IP(i0, i1)   ipp[i0+ipDim0*(i1)]
 
#define INTERPOLEEGRID(i0)   interpoleeGridp[i0]
 
#define MASK(i0, i1, i2)   maskp[i0+maskDim0*(i1+maskDim1*(i2))]
 
#define MASK(i0, i1, i2)   maskp[i0+maskDim0*(i1+maskDim1*(i2))]
 
#define VERTEX0(i0, i1, i2)   XSCALE(vertexp[i0+vertexDim0*(i1+vertexDim1*(i2+vertexDim2*(0)))])
 
#define VERTEX1(i0, i1, i2)   YSCALE(vertexp[i0+vertexDim0*(i1+vertexDim1*(i2+vertexDim2*(1)))])
 
#define VERTEX2(i0, i1, i2)   ZSCALE(vertexp[i0+vertexDim0*(i1+vertexDim1*(i2+vertexDim2*(2)))])
 
#define CMASK(i0, i1, i2)   cMaskp[i0+cMaskDim0*(i1+cMaskDim1*(i2))]
 
#define CENTER0(i0, i1, i2)   XSCALE(centerp[i0+centerDim0*(i1+centerDim1*(i2+centerDim2*(0)))])
 
#define CENTER1(i0, i1, i2)   YSCALE(centerp[i0+centerDim0*(i1+centerDim1*(i2+centerDim2*(1)))])
 
#define IP(i0, i1)   ipp[i0+ipDim0*(i1)]
 
#define INTERPOLEEGRID(i0)   interpoleeGridp[i0]
 
#define MASK(i0, i1, i2)   maskp[i0+maskDim0*(i1+maskDim1*(i2))]
 

Functions

int collectInterpolationData (int srcProcessor, int destProcessor, int grid, CompositeGrid &cg, intSerialArray &interpolationPoint, intSerialArray &interpoleeGrid)
 

Macro Definition Documentation

#define CENTER0 (   i0,
  i1,
  i2 
)    XSCALE(centerp[i0+centerDim0*(i1+centerDim1*(i2+centerDim2*(0)))])
#define CENTER0 (   i0,
  i1,
  i2 
)    XSCALE(xa+dx0*(i0-i0a))
#define CENTER0 (   i0,
  i1,
  i2 
)    XSCALE(centerp[i0+centerDim0*(i1+centerDim1*(i2+centerDim2*(0)))])
#define CENTER1 (   i0,
  i1,
  i2 
)    YSCALE(centerp[i0+centerDim0*(i1+centerDim1*(i2+centerDim2*(1)))])
#define CENTER1 (   i0,
  i1,
  i2 
)    YSCALE(ya+dy0*(i1-i1a))
#define CENTER1 (   i0,
  i1,
  i2 
)    YSCALE(centerp[i0+centerDim0*(i1+centerDim1*(i2+centerDim2*(1)))])
#define CMASK (   i0,
  i1,
  i2 
)    cMaskp[i0+cMaskDim0*(i1+cMaskDim1*(i2))]
#define CMASK (   i0,
  i1,
  i2 
)    cMaskp[i0+cMaskDim0*(i1+cMaskDim1*(i2))]
#define FOR_3 (   i1,
  i2,
  i3,
  I1,
  I2,
  I3 
)    for( i3=I3.getBase(); i3<=I3.getBound(); i3++ ) for( i2=I2.getBase(); i2<=I2.getBound(); i2++ ) for( i1=I1.getBase(); i1<=I1.getBound(); i1++ )

Referenced by PlotIt::plotGrid2d().

#define FOR_3WithStride (   i1,
  i2,
  i3,
  m1,
  m2,
  m3,
  I1,
  I2,
  I3 
)    i1Bound=I1.getBound(); i2Bound=I2.getBound(); i3Bound=I3.getBound(); for( i3=I3.getBase(); i3<=i3Bound; i3+=m3 ) for( i2=I2.getBase(); i2<=i2Bound; i2+=m2 ) for( i1=I1.getBase(); i1<=i1Bound; i1+=m1 )

Referenced by PlotIt::plotGrid2d().

#define ForBoundary (   side,
  axis 
)    for( axis=0; axis<gc.numberOfDimensions(); axis++ ) for( side=0; side<=1; side++ )

Referenced by PlotIt::plotGrid2d().

#define INTERPOLEEGRID (   i0)    interpoleeGridp[i0]
#define INTERPOLEEGRID (   i0)    interpoleeGridp[i0]
#define INTERPOLEEGRID (   i0)    interpoleeGridp[i0]
#define IP (   i0,
  i1 
)    ipp[i0+ipDim0*(i1)]
#define IP (   i0,
  i1 
)    ipp[i0+ipDim0*(i1)]
#define IP (   i0,
  i1 
)    ipp[i0+ipDim0*(i1)]
#define MASK (   i0,
  i1,
  i2 
)    maskp[i0+maskDim0*(i1+maskDim1*(i2))]
#define MASK (   i0,
  i1,
  i2 
)    maskp[i0+maskDim0*(i1+maskDim1*(i2))]
#define MASK (   i0,
  i1,
  i2 
)    maskp[i0+maskDim0*(i1+maskDim1*(i2))]
#define MASK (   i0,
  i1,
  i2 
)    maskp[i0+maskDim0*(i1+maskDim1*(i2))]
#define MASK (   i0,
  i1,
  i2 
)    maskp[i0+maskDim0*(i1+maskDim1*(i2))]
#define MASK (   i0,
  i1,
  i2 
)    maskp[i0+maskDim0*(i1+maskDim1*(i2))]
#define MASK_CNR (   i1,
  i2,
  i3 
)    (MASK(i1,i2,i3) && !(MASK(i1,i2,i3) & isHiddenByRefinement))

Referenced by PlotIt::plotGrid2d().

#define MASK_DNR (   i1,
  i2,
  i3 
)    (MASK(i1,i2,i3)>0 && !(MASK(i1,i2,i3) & isHiddenByRefinement))

Referenced by PlotIt::plotGrid2d().

#define VERTEX0 (   i0,
  i1,
  i2 
)    XSCALE((xa+dx0*(i0-i0a)))
#define VERTEX0 (   i0,
  i1,
  i2 
)    XSCALE(vertexp[i0+vertexDim0*(i1+vertexDim1*(i2+vertexDim2*(0)))])
#define VERTEX1 (   i0,
  i1,
  i2 
)    YSCALE((ya+dy0*(i1-i1a)))
#define VERTEX1 (   i0,
  i1,
  i2 
)    YSCALE(vertexp[i0+vertexDim0*(i1+vertexDim1*(i2+vertexDim2*(1)))])
#define VERTEX2 (   i0,
  i1,
  i2 
)    ZSCALE((za+dz0*(i2-i2a)))
#define VERTEX2 (   i0,
  i1,
  i2 
)    ZSCALE(vertexp[i0+vertexDim0*(i1+vertexDim1*(i2+vertexDim2*(2)))])
#define XSCALE (   x)    (psp.xScaleFactor*(x))
#define YSCALE (   y)    (psp.yScaleFactor*(y))
#define ZSCALE (   z)    (psp.zScaleFactor*(z))

Function Documentation

int collectInterpolationData ( int  srcProcessor,
int  destProcessor,
int  grid,
CompositeGrid cg,
intSerialArray &  interpolationPoint,
intSerialArray &  interpoleeGrid 
)