[petsc-dev] setting viewer format from options

Jed Brown jed at jedbrown.org
Fri Jan 18 11:43:38 CST 2019


"Smith, Barry F. via petsc-dev" <petsc-dev at mcs.anl.gov> writes:

>    I'm very hesitant to have the -viewer_format supported by PETSc
>    because it reintroduces the concept of "setting" the viewer format,
>    as opposed to pushing and popping formats. I think it is a mistake
>    to have both the ability to set the format and to push/pop it, they
>    don't play well together.

I think we could allow setting the format *before* any push takes place.
I.e., if a caller creates a Viewer, they could set its format at that
moment, but anyone who is given a Viewer to use can only push/pop.

I don't know that such behavior is necessary/desirable in this instance.


More information about the petsc-dev mailing list