petsc-master 2018-02-16
Report Typos and Errors

PetscHelpPrintf

All PETSc help messages are passing through this function. You can change how help messages are printed by replacinng it with something that does not simply write to a stdout.

Synopsis

PetscErrorCode  PetscHelpPrintfDefault(MPI_Comm comm,const char format[],...)
To use, write your own function for example,
PetscErrorCode mypetschelpprintf(MPI_Comm comm,const char format[],....)
{ $ PetscFunctionReturn(0);
} then before the call to PetscInitialize() do the assignment
   PetscHelpPrintf = mypetschelpprintf;

Note: the default routine used is called PetscHelpPrintfDefault().

See Also

PetscVSNPrintf(), PetscVFPrintf(), PetscErrorPrintf()

Level

developer

Location

src/sys/fileio/mprint.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages