PetscOpenMPRunCtx

runs a function on all the processes of a node

Synopsis

#include "petscsys.h"   
PetscErrorCode PETSC_DLLEXPORT PetscOpenMPRunCtx(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 PetscOpenMPMalloc()

Notes: This is like PetscOpenMPRun() except it also passes the context passed in PetscOpenMPMerge()

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

See Also

PetscOpenMPMerge(), PetscOpenMPMalloc(), PetscOpenMPFree(), PetscOpenMPRun()

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