PetscOpenMPFree

Frees a "c struct" on all nodes of an OpenMP communicator

Synopsis

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

Input Parameters

comm - Must be PETSC_COMM_LOCAL_WORLD
ptr - pointer to data to be freed, must have been obtained with PetscOpenMPMalloc()

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

See Also

PetscOpenMPMerge(), PetscOpenMPMalloc()

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