PetscObjectComposedDataGetScalar#
retrieve scalar data attached to an object that was set with PetscObjectComposedDataSetScalar()
Synopsis#
#include "petsc/private/petscimpl.h"
PetscErrorCode PetscObjectComposedDataGetScalar(PetscObject obj,int id,PetscScalar data,PetscBool flag)
Not collective
Input parameters#
obj - the object from which data is to be retrieved
id - the identifier for the data
Output parameters#
data - the data to be retrieved
flag -
PETSC_TRUEif the data item exists and is valid,PETSC_FALSEotherwise
Note#
The ‘data’ and ‘flag’ variables are inlined, so they are not pointers.
See Also#
PetscObjectComposedDataSetInt(), PetscObjectComposedDataSetReal(), PetscObjectComposedDataGetReal(), PetscObjectComposedDataSetIntstar(),
PetscObjectComposedDataSetIntstar(), PetscObjectComposedDataGetInt(), PetscObject,
PetscObjectCompose(), PetscObjectQuery(), PetscObjectComposedDataSetRealstar(), PetscObjectComposedDataSetScalar()
Level#
developer
Location#
include/petsc/private/petscimpl.h
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages