#include "petscdmswarm.h" PETSC_EXTERN PetscErrorCode DMSwarmSetPointCoordinates(DM dm,PetscInt npoints,PetscReal coor[],PetscBool redundant,InsertMode mode)Collective on DM
| dm | - the DMSwarm | |
| npoints | - the number of points to insert | |
| coor | - the coordinate values | |
| redundant | - if set to PETSC_TRUE, it is assumed that npoints and coor[] are only valid on rank 0 and should be broadcast to other ranks | |
| mode | - indicates whether to append points to the swarm (ADD_VALUES), or over-ride existing points (INSERT_VALUES) |
Level:beginner
Location:src/dm/impls/swarm/swarmpic.c
Index of all DMSWARM routines
Table of Contents for all manual pages
Index of all manual pages