DMSwarmCollectViewCreate#

Applies a collection method and gathers points in neighbour ranks into the DMSwarm

Synopsis#

#include "petscdmswarm.h"   
PetscErrorCode DMSwarmCollectViewCreate(DM dm)

Collective on dm

Input parameter#

  • dm - the DMSwarm

Notes#

Users should call DMSwarmCollectViewDestroy() after they have finished computations associated with the collected points Different collect methods are supported. See DMSwarmSetCollectType().

See Also#

DMSwarmCollectViewDestroy(), DMSwarmSetCollectType()

Level#

advanced

Location#

src/dm/impls/swarm/swarm.c

Examples#

src/dm/tutorials/swarm_ex1.c.html


Edit on GitLab

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