4 #beginMacro extractBoundaryDataArrays()
6 #define dbc(s,a,side,axis) (pdbc[(s)+2*((a)+3*((side)+2*(axis)))])
8 #define addBoundaryForcing(side,axis) (pAddBoundaryForcing[(side)+2*(axis)])
13 #define bcfOffset(side,axis) pbcfOffset[(side)+2*(axis)]
19 if( ( pBoundaryData[
side][
axis]==NULL || parameters.isAdaptiveGridProblem() ) &&
27 if( pBoundaryData[
side][
axis]!=NULL )
30 printP(
"+++ Cgsm: add boundary forcing to (side,axis,grid)=(%i,%i,%i) useConservative=%i\n",
side,
axis,
grid,
31 (
int)useConservative);
34 RealArray & bd = *pBoundaryData[
side][
axis];
41 for(
int a=0;
a<=2;
a++ )
51 for(
int a=0;
a<=2;
a++ )
79 #beginMacro getVariableMaterialPropertyPointers(defaultMatIndexPtr,defaultMatValPtr)
86 if( parameters.dbase.get<
int>(
"variableMaterialPropertiesOption")!=0 )
89 std::vector<GridMaterialProperties> & materialProperties =
90 parameters.dbase.get<std::vector<GridMaterialProperties> >(
"materialProperties");
97 IntegerArray & matIndex = matProp.getMaterialIndexArray();
98 matIndexPtr = matIndex.getDataPointer();
101 RealArray & matVal = matProp.getMaterialValuesArray();
102 matValPtr = matVal.getDataPointer();
103 ndMatProp = matVal.getLength(0);