DMSwarmGetCoordinateFunction#

Get the function setting initial particle velocities, if it exists

Synopsis#

#include "petscdmswarm.h"   
PetscErrorCode DMSwarmGetVelocityFunction(DM sw, PetscSimplePointFunc *velFunc)

Not Collective

Input parameter#

Output Parameter#

  • velFunc - the function setting initial particle velocities, or NULL

See Also#

DMSWARM, DMSwarmSetVelocityFunction(), DMSwarmGetCoordinateFunction(), DMSwarmInitializeVelocities()

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