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

Macros

#define FOR_3D(i1, i2, i3, I1, I2, I3)
 
#define ce(c, e)   stencilSize*((c)+numberOfComponentsForCoefficients*(e))
 

Functions

int displayCoeff (realMappedGridFunction &coeff, const aString &label, FILE *file, const aString format)
 Output the equations contained in a coefficient matrix.
 

Macro Definition Documentation

#define ce (   c,
 
)    stencilSize*((c)+numberOfComponentsForCoefficients*(e))
#define FOR_3D (   i1,
  i2,
  i3,
  I1,
  I2,
  I3 
)
Value:
int I1Base =I1.getBase(), I2Base =I2.getBase(), I3Base =I3.getBase(); \
int I1Bound=I1.getBound(), I2Bound=I2.getBound(), I3Bound=I3.getBound(); \
for(i3=I3Base; i3<=I3Bound; i3++) \
for(i2=I2Base; i2<=I2Bound; i2++) \
for(i1=I1Base; i1<=I1Bound; i1++)

Referenced by displayCoeff().

Function Documentation

int displayCoeff ( realMappedGridFunction coeff,
const aString label,
FILE *  file,
const aString  format 
)

Output the equations contained in a coefficient matrix.

Parameters
coeff,:output the equations for this matrix.
label,:write this label as the header.
file,:write results to this file. In parallel, only the local array is written to this file and thus there should be a different file for each processor.
format,:output format

References assert, c, ce, CopyArray::copyArray(), D, FOR_3D, fPrintF(), getIndex(), getLocalArrayWithGhostBoundaries(), doubleMappedGridFunction::getMappedGrid(), MappedGrid::gridIndexRange(), i2, MappedGrid::mask(), max(), NULL, SparseRepForMGF::numberOfComponents, MappedGrid::numberOfDimensions(), SparseRepForMGF::numberOfGhostLines, S, doubleMappedGridFunction::sparse, and SparseRepForMGF::stencilSize.

Referenced by Ogmg::buildPredefinedCoefficientMatrix(), Integrate::computeWeights(), Oges::generateMatrix(), and Ogmg::operatorAveraging().