PetscViewerASCIIWORLDSetFileUnit#
sets PETSC_VIEWER_STDOUT_WORLD
to write to a Fortran IO unit
Synopsis#
#include <petscviewer.h>
void PetscViewerASCIIWORLDSetFileUnit(PetscInt unit, PetscErrorCode ierr)
Input Parameter#
unit - the unit number
Output Parameter#
ierr - the error code
Notes#
Must be called before PetscInitialize()
This may not work currently with some viewers that (improperly) use the fd
directly instead of PetscViewerASCIIPrintf()
With this option, for example, -log_options
results will be saved to the Fortran file
Any process may call this but only the unit passed on the first process is used
Fortran Note#
Only for Fortran
Developer Note#
PetscViewerASCIIWORLDSetFilename()
could be added in the future
See Also#
PetscViewerASCIISetFILE()
, PETSCVIEWERASCII
, PetscViewerASCIIOpenWithFileUnit()
, PetscViewerASCIIWORLDSetFileUnit()
Level#
intermediate
Location#
src/sys/classes/viewer/impls/ascii/filev.c
Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages