DMSwarmGetFieldInfo#
Return the block size and data type of a registered DMSWARM field without accessing its data.
Synopsis#
#include "petscdmswarm.h"
PetscErrorCode DMSwarmGetFieldInfo(DM dm, const char fieldname[], PetscInt *blocksize, PetscDataType *type)
Not Collective
Input Parameters#
dm - a
DMSWARMfieldname - the name of the registered field
Output Parameters#
blocksize - the number of entries of
typeper particle, orNULLtype - the
PetscDataTypeof a single entry, orNULL
See Also#
DM, DMSWARM, DMSwarmGetField(), DMSwarmRestoreField(), DMSwarmRegisterPetscDatatypeField()
Level#
intermediate
Location#
Index of all DMSwarm routines
Table of Contents for all manual pages
Index of all manual pages