Write current mesh to the SAF database¶
WriteCurrentMesh is a function defined in loadbalance.c.
Synopsis:
-
void
WriteCurrentMesh(DbInfo_t *dbInfo, int theStep, int numDims, int numProcs, int myProcNum, CurrentMeshParams_t *theMesh, SAF_Field *fieldList, int *fieldListSize)¶
Formal Arguments:
dbInfo: [IN/OUT] database info objecttheStep: [IN] current step numbernumDims: [IN] number of dimensions in meshnumProcs: [IN] number of processorsmyProcNum: [IN] the rank of calling processortheMesh: [IN/OUT] current mesh parameters (relation and file handle updated)fieldList: [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:
- Dynamic Load Balance Use Case: Introduction for current chapter