#include <petscsys.h> PetscErrorCode (*PetscHelpPrintf)(MPI_Comm comm, const char format[],args);Collective on comm
comm | - the MPI communicator over which the help message is printed | |
format | - the usual printf() format string | |
args | - arguments to be printed |
To use, write your own function, for example,
PetscErrorCode mypetschelpprintf(MPI_Comm comm,const char format[],....)
{ $ PetscFunctionReturn(0);
} then do the assigment
PetscHelpPrintf = mypetschelpprintf;You can do the assignment before PetscInitialize().
The default routine used is called PetscHelpPrintfDefault().