Not a show stopper, but would it be possible to add a PetscViewerDuplicate function? I don't see such a function here - http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Viewer/index.html Cheers, -Nachiket