#include "petscsys.h" PetscErrorCode PetscInfoSetClasses(PetscBool exclude, PetscInt N, const char *const *classnames)Not Collective
|exclude||- Whether or not to invert the filter, i.e. if exclude is true, PetscInfo() will print from every class that is NOT one of the classes specified|
|N||- Number of classes to filter for (size of classnames)|
|classnames||- String array containing the names of classes to filter for, e.g. "vec"|
This function CANNOT be called after PetscInfoGetClass() or PetscInfoProcessClass() has been called.
Names in the classnames list should correspond to the names returned by PetscObjectGetClassName().
This function only sets the list of class names. The actual filtering is deferred to PetscInfoProcessClass(), except of sys which is processed right away. The reason for this is that we need to set the list of included/excluded classes before their classids are known. Typically the classid is assigned and PetscInfoProcessClass() called in <Class>InitializePackage() (e.g. VecInitializePackage()).