PetscViewerRestoreSubViewer

Restores a new PetscViewer obtained with PetscViewerGetSubViewer().

Synopsis

#include "petscviewer.h" 
PetscErrorCode  PetscViewerRestoreSubViewer(PetscViewer viewer,MPI_Comm comm,PetscViewer *outviewer)
Collective on PetscViewer

Input Parameters

viewer - the PetscViewer that was reproduced
outviewer - new PetscViewer

Level: advanced

Notes

Call PetscViewerGetSubViewer() to get this PetscViewer, NOT PetscViewerCreate()

See Also

PetscViewerSocketOpen(), PetscViewerASCIIOpen(), PetscViewerDrawOpen(), PetscViewerGetSubViewer()

Location:dupl.c