PetscPartitionerViewFromOptions#
View a PetscPartitioner object based on options in the options database
Synopsis#
#include "petscpartitioner.h"
PetscErrorCode PetscPartitionerViewFromOptions(PetscPartitioner A, PetscObject obj, const char name[])
Collective
Input Parameters#
A - the
PetscPartitionerobjectobj - optional
PetscObjectthat provides the options prefix, passNULLto use the options prefix ofAname - command line option
Options Database Key#
-name viewer_specification - See
PetscOptionsCreateViewer()for the values ofviewer_specification
Note#
This checks the options database, creates the viewer on-the-fly, uses it and then destroys it. Hence it should not be called in heavily used routines,
rather PetscOptionsCreateViewer() should be used to construct the viewer once which can then be utilized in the heavily used routine.
See Also#
PetscPartitioner, PetscPartitionerView(), PetscObjectViewFromOptions(), PetscOptionsCreateViewer()
Level#
intermediate
Location#
Examples#
src/dm/impls/plex/tests/ex12.c
src/dm/partitioner/tests/ex33.c
Index of all MatGraphOperations routines
Table of Contents for all manual pages
Index of all manual pages