| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | petscopt.pxi | 196 cdef getopt(PetscOptions opt, PetscOptType otype, prefix, name, deft): argument 200 if otype == OPT_BOOL : return getopt_Bool (opt, pr, nm, deft) 201 if otype == OPT_BOOLARRAY : return getopt_BoolArray (opt, pr, nm, deft) 202 if otype == OPT_INT : return getopt_Int (opt, pr, nm, deft) 203 if otype == OPT_INTARRAY : return getopt_IntArray (opt, pr, nm, deft) 204 if otype == OPT_REAL : return getopt_Real (opt, pr, nm, deft) 205 if otype == OPT_REALARRAY : return getopt_RealArray (opt, pr, nm, deft) 206 if otype == OPT_SCALAR : return getopt_Scalar (opt, pr, nm, deft) 207 if otype == OPT_SCALARARRAY : return getopt_ScalarArray (opt, pr, nm, deft) 208 if otype == OPT_STRING : return getopt_String (opt, pr, nm, deft)
|
| H A D | DMPlex.pyx | 2196 def getOrdering(self, otype: Mat.OrderingType) -> IS: 2203 otype 2219 otype = str2bytes(otype, &cval)
|
| /petsc/src/sys/info/ |
| H A D | verboseinfo.c | 593 const char *otype = NULL; in PetscInfo_Private() local 605 PetscCall(PetscObjectGetType(obj, &otype)); in PetscInfo_Private() 629 if (otype) { in PetscInfo_Private() 630 …ng), "[%d] <%s:%s> %s(): ", urank, PetscInfoNames[classid - PETSC_SMALLEST_CLASSID], otype, func)); in PetscInfo_Private()
|
| /petsc/src/ksp/pc/impls/factor/ |
| H A D | factor.c | 36 MatOrderingType otype; in PCFactorSetDefaultOrdering_Factor() local 39 …if (canuseordering) PetscCall(MatFactorGetPreferredOrdering(fact->fact, fact->factortype, &otype)); in PCFactorSetDefaultOrdering_Factor() 40 else otype = MATORDERINGEXTERNAL; in PCFactorSetDefaultOrdering_Factor() 41 PetscCall(PetscStrallocpy(otype, (char **)&fact->ordering)); in PCFactorSetDefaultOrdering_Factor()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexreorder.c | 69 PetscErrorCode DMPlexGetOrdering(DM dm, MatOrderingType otype, DMLabel label, IS *perm) in DMPlexGetOrdering() argument 616 MatOrderingType otype; in DMCreateSectionPermutation_Plex() local 622 PetscCall(DMReorderSectionGetType(dm, &otype)); in DMCreateSectionPermutation_Plex() 623 if (!otype) PetscFunctionReturn(PETSC_SUCCESS); in DMCreateSectionPermutation_Plex() 624 PetscCall(PetscStrncmp(otype, "cohesive_old", 1024, &iscohesiveOld)); in DMCreateSectionPermutation_Plex() 625 PetscCall(PetscStrncmp(otype, "cohesive", 1024, &iscohesive)); in DMCreateSectionPermutation_Plex() 626 PetscCall(PetscStrncmp(otype, "reverse", 1024, &isreverse)); in DMCreateSectionPermutation_Plex()
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/checks/ |
| H A D | _util.py | 732 obj_type = cycle_type(obj_type, lambda otype: otype.element_type) 734 obj_type = cycle_type(obj_type, lambda otype: otype.get_pointee())
|
| /petsc/src/sys/classes/viewer/impls/hdf5/ |
| H A D | hdf5v.c | 1392 …al(PetscViewer viewer, const char name[], PetscBool createGroup, PetscBool *has, H5O_type_t *otype) in PetscViewerHDF5Traverse_Internal() argument 1410 if (otype) { in PetscViewerHDF5Traverse_Internal() 1411 PetscAssertPointer(otype, 5); in PetscViewerHDF5Traverse_Internal() 1412 *otype = H5O_TYPE_UNKNOWN; in PetscViewerHDF5Traverse_Internal() 1427 if (otype) *otype = H5O_TYPE_GROUP; in PetscViewerHDF5Traverse_Internal() 1440 if (exists && otype) { in PetscViewerHDF5Traverse_Internal() 1445 *otype = info.type; in PetscViewerHDF5Traverse_Internal()
|
| /petsc/src/mat/impls/is/ |
| H A D | matis.c | 3140 MatType mtype, otype; in MatISSetLocalMat_IS() local 3149 PetscCall(MatGetType(is->A, &otype)); in MatISSetLocalMat_IS() 3150 PetscCall(PetscStrcmp(mtype, otype, &sametype)); in MatISSetLocalMat_IS()
|
| /petsc/src/dm/interface/ |
| H A D | dm.c | 129 MatOrderingType otype; in DMClone() local 156 PetscCall(DMReorderSectionGetType(dm, &otype)); in DMClone() 157 PetscCall(DMReorderSectionSetType(*newdm, otype)); in DMClone()
|
| /petsc/src/mat/interface/ |
| H A D | matrix.c | 4766 PetscErrorCode MatFactorGetPreferredOrdering(Mat mat, MatFactorType ftype, MatOrderingType *otype) in MatFactorGetPreferredOrdering() argument 4769 *otype = mat->preferredordering[ftype]; in MatFactorGetPreferredOrdering() 4770 …PetscCheck(*otype, PETSC_COMM_SELF, PETSC_ERR_PLIB, "MatFactor did not have a preferred ordering"); in MatFactorGetPreferredOrdering()
|