PetscViewerASCIIPrintf#

Prints to a file, only from the first processor in the PetscViewer of type PETSCVIEWERASCII

Synopsis#

#include "petscviewer.h" 
PetscErrorCode PetscViewerASCIIPrintf(PetscViewer viewer, const char format[], ...)

Not Collective, but only the first MPI rank in the viewer has any effect

Input Parameters#

Fortran Notes#

The call sequence is PetscViewerASCIIPrintf(PetscViewer, character(*), int ierr) from Fortran. That is, you can only pass a single character string from Fortran.

See Also#

Viewers: Looking at PETSc Objects, PetscPrintf(), PetscSynchronizedPrintf(), PetscViewerASCIIOpen(), PetscViewerASCIIPushTab(), PetscViewerASCIIPopTab(), PetscViewerASCIISynchronizedPrintf(), PetscViewerCreate(), PetscViewerDestroy(), PetscViewerSetType(), PetscViewerASCIIGetPointer(), PetscViewerASCIIPushSynchronized()

Level#

developer

Location#

src/sys/classes/viewer/impls/ascii/filev.c

Examples#

src/ts/tutorials/ex30.c
src/dm/field/tutorials/ex1.c
src/vec/vec/utils/tagger/tutorials/ex1.c
src/vec/is/sf/tutorials/ex1f.F90
src/ts/tutorials/ex9.c
src/vec/is/sf/tutorials/ex1.c
src/ts/tutorials/ex14.c
src/ksp/ksp/tutorials/ex69.c
src/dm/label/tutorials/ex1f90.F90
src/dm/label/tutorials/ex1.c


Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages