petsc-3.4.5 2014-06-29

PetscHMPIRunCtx

runs a function on all the processes of a node

Synopsis

#include "petscsys.h"   
PetscErrorCode  PetscHMPIRunCtx(MPI_Comm comm,PetscErrorCode (*f)(MPI_Comm,void*,void*),void *ptr)
Collective on MPI_Comm

Input Parameters

comm - communicator to run function on, must be PETSC_COMM_LOCAL_WORLD
f - function to run
ptr - pointer to data to pass to function; must be obtained with PetscHMPIMalloc()

Notes: This is like PetscHMPIRun() except it also passes the context passed in PetscHMPIMerge()

Developer Notes: Since comm must be PETSC_COMM_LOCAL_WORLD, why have this argument?

See Also

PetscHMPIMerge(), PetscHMPIMalloc(), PetscHMPIFree(), PetscHMPIRun()

Level:developer
Location:
src/sys/objects/mpinit.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages