PetscErrorCode PetscPOpen(MPI_Comm comm,const char machine[],const char program[],const char mode[],FILE **fp)Logically Collective, but only process 0 runs the command
comm | - MPI communicator, only processor zero runs the program | |
machine | - machine to run command on or NULL, or string with 0 in first location | |
program | - name of program to run | |
mode | - either r or w |
If machine is not provided will use the value set with PetsPOpenSetMachine() if that was provided, otherwise will use the machine running node zero of the communicator
The program string may contain ${DISPLAY}, ${HOMEDIRECTORY} or ${WORKINGDIRECTORY}; these will be replaced with relevent values.