PetscErrorCode PetscViewerMatlabOpen(MPI_Comm comm,const char name[],PetscViewerFileType type,PetscViewer *binv)Collective on MPI_Comm
comm | - MPI communicator | |
name | - name of file | |
type | - type of file |
PETSC_FILE_CREATE - create new file for Matlab output
PETSC_FILE_RDONLY - open existing file for Matlab input
PETSC_FILE_WRONLY - open existing file for Matlab output
For writing files it only opens the file on processor 0 in the communicator. For readable files it opens the file on all nodes that have the file. If node 0 does not have the file it generates an error even if other nodes do have the file.
Level:beginner
Location:src/sys/src/viewer/impls/matlab/vmatlab.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages