int ViewerFileOpenASCII(MPI_Comm comm,char *name,Viewer *lab)
Collective on MPI_Comm
Each processor can instead write its own independent output byspecifying the communicator PETSC_COMM_SELF.
As shown below, ViewerFileOpenASCII() is useful in conjunction withMatView() and VecView()
ViewerFileOpenASCII(PETSC_COMM_WORLD,"mat.output",&viewer);
MatView(matrix,viewer);
This viewer can be destroyed with ViewerDestroy().
Location: src/viewer/impls/file/filev.c
Viewer Index
Table of Contents