#include "petscsys.h" PetscErrorCode PetscHMPIRunCtx(MPI_Comm comm,PetscErrorCode (*f)(MPI_Comm,void*,void*),void *ptr)Collective on MPI_Comm
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?
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