petsc-3.14.6 2021-03-30
Report Typos and Errors

PetscObjectComposedDataGetInt

retrieve integer data attached to an object

Synopsis

#include "petsc/private/petscimpl.h"
PetscErrorCode PetscObjectComposedDataGetInt(PetscObject obj,int id,int 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_TRUE if the data item exists and is valid, PETSC_FALSE otherwise

The 'data' and 'flag' variables are inlined, so they are not pointers.

Level

developer

Location

include/petsc/private/petscimpl.h

Examples

src/snes/tutorials/ex12.c.html

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages