[petsc-dev] setting viewer format from options
Hapla Vaclav
vaclav.hapla at erdw.ethz.ch
Wed Jan 16 06:47:38 CST 2019
I need to distinguish a PetscViewerFormat in DMLoad() and MatLoad(). And it would be handy to be able to set it from options. So I wanted to add -viewer_format option into PetscViewerSetFromOptions().
But the problem is PetscViewerSetFormat() is deprecated and PetscViewerPushFormat() needs to be paired with PetscViewerPopFormat() which I don't know where to place correctly.
Can you see some clean way to proceed?
Thanks
Vaclav
More information about the petsc-dev
mailing list