ViewerGetSingleton

Creates a new viewer (same type as the old) that lives on a single processor (with MPI_comm PETSC_COMM_SELF)

Synopsis

#include "viewer.h" 
int ViewerGetSingleton(Viewer viewer,Viewer *outviewer)
Not Collective

Input Parameter

viewer -the viewer to be duplicated

Output Parameter

outviewer -new viewer

Notes: Call ViewerRestoreSingleton() to return this viewer, NOT ViewerDestroy()

This is most commonly used to view a sequential object that is part of a parallel object. For example block Jacobi PC view could use this to obtain a viewer that is used with the sequential SLES on one block of the preconditioner.

Keywords

Viewer, duplication

See Also

ViewerSocketOpen(), ViewerASCIIOpen(), ViewerDrawOpen(), ViewerRestoreSingleton()

Level:advanced
Location:src/sys/src/viewer/interface/dupl.c
Viewer Index
Table of Contents