[petsc-users] Suppress printing in PETSc

Barry Smith bsmith at petsc.dev
Wed Jun 17 10:03:41 CDT 2020


  Bruce,

  Normally PETSc does does not print output unless you ask it, except error messages. 

  In C and C++ you can set the global variables
FILE *PETSC_STDOUT and FILE *PETSC_STDERR to any file you like, for example /dev/null.  In this way anything PETSc prints will just disappear.

   Barry


> On Jun 17, 2020, at 9:31 AM, Palmer, Bruce J via petsc-users <petsc-users at mcs.anl.gov> wrote:
> 
> Hi,
>  
> I think I may have asked this in the past, but I can’t seem to find the answer in the archive. Is there a way to suppress all printing from PETSc?
>  
> Bruce Palmer
> Senior Research Scientist
> Pacific Northwest National Laboratory
> Richland, WA 99352
> (509) 375-3899

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200617/473b156c/attachment.html>


More information about the petsc-users mailing list