type1 | - first type |
type2 | - second type |
int PetscTypeCompare(type1,type2)
VecType type; VecGetType(v,&type); if (PetscTypeCompare(type1,VEC_MPI)) { .... }
Only works for new-style types that are char*
Level:intermediate
Location:src/sys/src/utils/str.c
System Index
Table of Contents