PetscSerializeCompare

Determines if a PETSc object has a particular serializer.

Synopsis

#include "petsc.h"    
int PetscSerializeCompare(PetscObject obj, char *serialize_name, PetscTruth *same)
Not Collective

Input Parameters

obj - The PETSc object, for example a Vec, Mat or KSP.
serialize_name - string containing a serializer name

Output Parameter

same -PETSC_TRUE if they are the same, else PETSC_FALSE

Note

This works for any PETSc object, and thus must be cast with a (PetscObject).

Keywords

comparing serializers

See Also

VecGetType(), KSPGetType(), PCGetType(), SNESGetType()

Level:intermediate
Location:
src/sys/src/objects/destroy.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages