[petsc-users] [EXTERNAL] Re: Redirecting petsc output
Fackler, Philip
facklerpw at ornl.gov
Wed Sep 15 11:52:26 CDT 2021
Just to follow up here, I figured out a different way to get what I really wanted, and that is described on this page:
https://petsc.org/release/docs/manualpages/Sys/PetscVFPrintf.html
Thanks,
Philip Fackler
Research Software Engineer, Application Engineering Group
Advanced Computing Systems Research Section
Computer Science and Mathematics Division
Oak Ridge National Laboratory
________________________________
From: petsc-users <petsc-users-bounces at mcs.anl.gov> on behalf of Fackler, Philip via petsc-users <petsc-users at mcs.anl.gov>
Sent: Wednesday, September 8, 2021 11:24
To: Barry Smith <bsmith at petsc.dev>
Cc: petsc-users at mcs.anl.gov <petsc-users at mcs.anl.gov>; xolotl-psi-development at lists.sourceforge.net <xolotl-psi-development at lists.sourceforge.net>
Subject: Re: [petsc-users] [EXTERNAL] Re: Redirecting petsc output
Barry,
Thanks for the quick reply! I'll try those out.
Philip Fackler
Research Software Engineer, Application Engineering Group
Advanced Computing Systems Research Section
Computer Science and Mathematics Division
Oak Ridge National Laboratory
________________________________
From: Barry Smith <bsmith at petsc.dev>
Sent: Wednesday, September 8, 2021 11:16
To: Fackler, Philip <facklerpw at ornl.gov>
Cc: xolotl-psi-development at lists.sourceforge.net <xolotl-psi-development at lists.sourceforge.net>; petsc-users at mcs.anl.gov <petsc-users at mcs.anl.gov>
Subject: [EXTERNAL] Re: [petsc-users] Redirecting petsc output
Philip,
There a variety of techniques. Some of the command line options take an optional viewer name where the output can be redirected. For example
-ts_monitor ascii:filename or -ts_view ascii:filename see https://petsc.org/release/docs/manualpages/Viewer/PetscOptionsGetViewer.html for more details
It is also possible to change all stdout from PETSc to a different file by setting PETSC_STDOUT = fopen(...)
Barry
On Sep 8, 2021, at 10:59 AM, Fackler, Philip via petsc-users <petsc-users at mcs.anl.gov<mailto:petsc-users at mcs.anl.gov>> wrote:
Is there a way to customize how petsc writes information? Instead of writing to stdout (for example: 0 TS dt 0.1 time 0.), what if we want to log that message to a file other output from Xolotl? I'm assuming there are multiple ways of getting this result. What's common practice with petsc folks?
Thanks,
Philip Fackler
Research Software Engineer, Application Engineering Group
Advanced Computing Systems Research Section
Computer Science and Mathematics Division
Oak Ridge National Laboratory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20210915/2ee9db34/attachment.html>
More information about the petsc-users
mailing list