petsc-3.9.4 2018-09-11
Report Typos and Errors

PetscInfo

Logs informative data, which is printed to standard output or a file when the option -info <file> is specified.

Synopsis

#include <petscsys.h>
PetscErrorCode PetscInfo(void *vobj, const char message[])
PetscErrorCode PetscInfo1(void *vobj, const char formatmessage[],arg1)
PetscErrorCode PetscInfo2(void *vobj, const char formatmessage[],arg1,arg2)
etc
Collective over PetscObject argument

Input Parameter

vobj - object most closely associated with the logging statement or NULL
message - logging message
formatmessage - logging message using standard "printf" format

Options Database Key

   -info : activates printing of PetscInfo() messages

Fortran Note: This function does not take the vobj argument, there is only the PetscInfo() version, not PetscInfo1() etc.

Example of Usage


    Mat A
    double alpha
    PetscInfo1(A,"Matrix uses parameter alpha=%g\n",alpha);

See Also

PetscInfoAllow()

Level

intermediate

Location

src/sys/info/verboseinfo.c

Examples

src/sys/examples/tutorials/ex3f.F.html
src/ksp/ksp/examples/tutorials/ex72.c.html
src/ts/examples/tutorials/ex11.c.html

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