DMSwarmSetCoordinateFunction#

Set the function setting initial particle positions

Synopsis#

#include "petscdmswarm.h"   
PetscErrorCode DMSwarmSetCoordinateFunction(DM sw, PetscSimplePointFunc coordFunc)

Not Collective

Input parameters#

  • dm - the DMSWARM

  • coordFunc - the function setting initial particle positions

See Also#

DMSWARM, DMSwarmGetCoordinateFunction(), DMSwarmSetVelocityFunction(), DMSwarmInitializeCoordinates()

Level#

intermediate

Location#

src/dm/impls/swarm/swarmpic.c


Edit on GitLab

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