petsc-3.7.1 2016-05-15
Report Typos and Errors

PetscSharedTmp

Determines if all processors in a communicator share a /tmp or have different ones.

Synopsis

PetscErrorCode  PetscSharedTmp(MPI_Comm comm,PetscBool  *shared)
Collective on MPI_Comm Many br

Input Parameters

comm -MPI_Communicator that may share /tmp Many br

Output Parameters

shared -PETSC_TRUE or PETSC_FALSE Many br

Options Database Keys

-shared_tmp- . -not_shared_tmp Many br
-tmp tmpdir- Many brEnvironmental Variables: Many br+ PETSC_SHARED_TMP Many br
PETSC_NOT_SHARED_TMP -- PETSC_TMP Many br

Many br

Notes

Stores the status as a MPI attribute so it does not have Many brto be redetermined each time. Many br

Assumes that all processors in a communicator either Many br1) have a common /tmp or Many br2) each has a separate /tmp Many breventually we can write a fancier one that determines which processors Many brshare a common /tmp. Many br

This will be very slow on runs with a large number of processors since Many brit requires O(p*p) file opens. Many br

If the environmental variable PETSC_TMP is set it will use this directory Many bras the "/tmp" directory. Many br

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