petsc-master 2017-08-16
Report Typos and Errors


Determines whether a PETSc object is of any of a list of types.


#include "petscsys.h"    
PetscErrorCode PetscObjectTypeCompareAny(PetscObject obj,PetscBool *match,const char type_name[],...)
Not Collective

Input Parameters

obj - any PETSc object, for example a Vec, Mat or KSP. This must be cast with a (PetscObject), for example, PetscObjectTypeCompareAny((PetscObject)mat,...);
type_name - string containing a type name, pass the empty string "" to terminate the list

Output Parameter

match -PETSC_TRUE if the type of obj matches any in the list, else PETSC_FALSE

See Also

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

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