petsc-3.6.1 2015-08-06
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 
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
Index of all Profiling routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/sys/examples/tutorials/ex3f.F.html
src/ksp/ksp/examples/tutorials/ex10.c.html