#include "petscdmswarm.h" PETSC_EXTERN PetscErrorCode DMSwarmRegisterPetscDatatypeField(DM dm,const char fieldname[],PetscInt blocksize,PetscDataType type)Collective on DM
| dm | - a DMSwarm | |
| fieldname | - the textual name to identify this field | |
| blocksize | - the number of each data type | |
| type | - a valid PETSc data type (PETSC_CHAR, PETSC_SHORT, PETSC_INT, PETSC_FLOAT, PETSC_REAL, PETSC_LONG) |