petsc-3.6.1 2015-08-06
Report Typos and Errors

PetscViewerRestoreSubcomm

Restores a new PetscViewer obtained with PetscViewerGetSubcomm().

Synopsis

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

Input Parameters

viewer - the PetscViewer to be duplicated
subcomm - MPI communicator
outviewer - new PetscViewer

Notes: Call PetscViewerGetSubcomm() to get this PetscViewer, NOT PetscViewerCreate()

See Also

PetscViewerSocketOpen(), PetscViewerASCIIOpen(), PetscViewerDrawOpen(), PetscViewerGetSubcomm()

Level:advanced
Location:
src/sys/classes/viewer/interface/dupl.c
Index of all Viewer routines
Table of Contents for all manual pages
Index of all manual pages