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 DMSWARM

  • fieldname - the name of the registered field

Output Parameters#

  • blocksize - the number of entries of type per particle, or NULL

  • type - the PetscDataType of a single entry, or NULL

See Also#

DM, DMSWARM, DMSwarmGetField(), DMSwarmRestoreField(), DMSwarmRegisterPetscDatatypeField()

Level#

intermediate

Location#

src/dm/impls/swarm/swarm.c


Index of all DMSwarm routines
Table of Contents for all manual pages
Index of all manual pages