Write current mesh to the SAF database¶
WriteCurrentMesh
is a function defined in hadaptive.c.
Synopsis:
-
void
WriteCurrentMesh
(DbInfo_t *dbInfo, int theStep, int numProcs, int myProcNum, CurrentMeshParams_t theMesh, SAF_Field *fieldList, int *fieldListSize)¶
Formal Arguments:
dbInfo
: [IN
/OUT
] database info objecttheStep
: [IN
] current step numbernumProcs
: [IN
] number of processorsmyProcNum
: [IN
] the rank of calling processortheMesh
: [IN
] current mesh parametersfieldList
: [IN
/OUT
] list of fields we’ll append newly written fields toofieldListSize
: [IN
/OUT
] On input, the current size of the field list. On output, its new size
Description: This function does all the work of writing the current mesh, including its domain-decomposed topology relation, processor subset relations, coordinate field, and pressure field to the SAF database.
See Also:
- Hadaptive Use Case: Introduction for current chapter