2.3.3. Termination Routines

With the exception of cfxImportTotals the last call to the Import API must always be cfxImportDone. This function performs the final processing of the import data, and then transfers the data to CFX.

2.3.3.1. cfxImportDone

long cfxImportDone ()

Indicate to the import API that all mesh data has been given and the API should now send the data to CFX. Except for cfxImportTotals, this should be last call made to the API. Returns the total number of bytes transferred to CFX by the import program.

2.3.3.2. cfxImportTotals

long cfxImportTotals (counts)
size_t counts[cfxImpCNT_SIZE];

Get the total number of nodes, elements, regions and other useful information given to the mesh import API by the program. This information is returned in the array counts, which should be of size at least cfxImpCNT_SIZE (currently defined as 9). The values returned in counts may be indexed by the enum list in cfxImport.h, which is:

counts[cfxImpCNT_NODE]    = number of nodes
counts[cfxImpCNT_ELEMENT] = number of elements
counts[cfxImpCNT_REGION]  = number of regions
counts[cfxImpCNT_UNUSED]  = number of unused nodes
counts[cfxImpCNT_DUP]     = number of duplicate nodes
counts[cfxImpCNT_TET]     = number of tetrahedral elements
counts[cfxImpCNT_PYR]     = number of pyramid elements
counts[cfxImpCNT_WDG]     = number of wedge elements
counts[cfxImpCNT_HEX]     = number of hexahedral elements

The return value for the function is the total number of bytes of data sent to CFX or written to the test file given when cfxImportTest was called.