| /petsc/src/mat/impls/aij/mpi/ |
| H A D | fdmpiaij.c | 41 PetscInt ctype = coloring->ctype, nxloc, nrows_k; in MatFDColoringApply_BAIJ() local 80 if (ctype == IS_COLORING_GLOBAL && coloring->htype[0] == 'd') { in MatFDColoringApply_BAIJ() 107 …if (ctype == IS_COLORING_GLOBAL) w3_array -= cstart; /* shift pointer so global index can be used … in MatFDColoringApply_BAIJ() 123 if (ctype == IS_COLORING_GLOBAL) w3_array += cstart; in MatFDColoringApply_BAIJ() 192 ISColoringType ctype = coloring->ctype; in MatFDColoringApply_AIJ() local 203 …PetscCheck(!(ctype == IS_COLORING_LOCAL) || !(J->ops->fdcoloringapply == MatFDColoringApply_AIJ), … in MatFDColoringApply_AIJ() 234 if (ctype == IS_COLORING_GLOBAL && coloring->htype[0] == 'd') { in MatFDColoringApply_AIJ() 265 …if (ctype == IS_COLORING_GLOBAL) w3_array -= cstart; /* shift pointer so global index can be used … in MatFDColoringApply_AIJ() 279 if (ctype == IS_COLORING_GLOBAL) w3_array += cstart; in MatFDColoringApply_AIJ() 337 …if (ctype == IS_COLORING_GLOBAL) w3_array -= cstart; /* shift pointer so global index can be used … in MatFDColoringApply_AIJ() [all …]
|
| /petsc/src/sys/webclient/ |
| H A D | client.c | 104 …uest(const char type[], const char url[], const char header[], const char ctype[], const char body… in PetscHTTPBuildRequest() argument 127 if (ctype) { in PetscHTTPBuildRequest() 128 PetscCall(PetscSNPrintf(contenttype, 80, "Content-Type: %s\r\n", ctype)); in PetscHTTPBuildRequest() 147 if (ctype) PetscCall(PetscStrlcat(request, contenttype, request_len)); in PetscHTTPBuildRequest() 176 …uest(const char type[], const char url[], const char header[], const char ctype[], const char body… in PetscHTTPSRequest() argument 184 PetscCall(PetscHTTPBuildRequest(type, url, header, ctype, body, &request)); in PetscHTTPSRequest() 264 …uest(const char type[], const char url[], const char header[], const char ctype[], const char body… in PetscHTTPRequest() argument 270 PetscCall(PetscHTTPBuildRequest(type, url, header, ctype, body, &request)); in PetscHTTPRequest()
|
| /petsc/src/binding/petsc4py/src/petsc4py/lib/_pytypes/viewer/ |
| H A D | petscpyvista.py | 8 def _convertCell(ctype, cells, nc, off): argument 10 if ctype == PETSc.DM.PolytopeType.TETRAHEDRON: 14 elif ctype == PETSc.DM.PolytopeType.HEXAHEDRON: 18 elif ctype == PETSc.DM.PolytopeType.TRI_PRISM: 22 elif ctype == PETSc.DM.PolytopeType.TRI_PRISM_TENSOR: 29 elif ctype == PETSc.DM.PolytopeType.PYRAMID:
|
| /petsc/src/mat/tests/ |
| H A D | ex55.c | 177 MatType ctype; in main() local 179 PetscCall(MatGetType(C, &ctype)); in main() 186 PetscCall(MatConvert(A, ctype, MAT_INITIAL_MATRIX, &C2)); in main() 200 PetscCall(MatConvert(A, ctype, MAT_INITIAL_MATRIX, &C2)); in main() 217 PetscCall(MatConvert(A, ctype, MAT_INITIAL_MATRIX, &C2)); in main()
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | DMSwarm.pyx | 334 cdef PetscDataType ctype = PETSC_DATATYPE_UNKNOWN 335 if dtype == IntType: ctype = PETSC_INT 336 if dtype == RealType: ctype = PETSC_REAL 337 if dtype == ScalarType: ctype = PETSC_SCALAR 338 if dtype == ComplexType: ctype = PETSC_COMPLEX 339 assert ctype != PETSC_DATATYPE_UNKNOWN 341 CHKERR(DMSwarmRegisterPetscDatatypeField(self.dm, cfieldname, cblocksize, ctype)) 371 cdef PetscDataType ctype = PETSC_DATATYPE_UNKNOWN 375 CHKERR(DMSwarmGetField(self.dm, cfieldname, &blocksize, &ctype, <void**> &data)) 378 if ctype == PETSC_INT: typenum = NPY_PETSC_INT [all …]
|
| H A D | Regressor.pyx | 222 cdef PetscRegressorType ctype = NULL 223 CHKERR(PetscRegressorGetType(self.regressor, &ctype)) 224 return bytes2str(ctype)
|
| H A D | TAO.pyx | 188 cdef PetscTAOType ctype = NULL 189 tao_type = str2bytes(tao_type, &ctype) 190 CHKERR(TaoSetType(self.tao, ctype)) 202 cdef PetscTAOType ctype = NULL 203 CHKERR(TaoGetType(self.tao, &ctype)) 204 return bytes2str(ctype) 734 cdef PetscMat ctype = M.mat 735 CHKERR(TaoSetLMVMMatrix(self.tao, ctype)) 1566 cdef PetscTAOBNCGType ctype = cg_type 1567 CHKERR(TaoBNCGSetType(self.tao, ctype)) [all …]
|
| H A D | PC.pyx | 1491 def setFieldSplitType(self, ctype: CompositeType) -> None: 1498 ctype 1506 cdef PetscPCCompositeType cval = ctype 1621 def setFieldSplitSchurFactType(self, ctype: FieldSplitSchurFactType) -> None: 1628 ctype 1636 cdef PetscPCFieldSplitSchurFactType cval = ctype 1666 def setCompositeType(self, ctype: CompositeType) -> None: 1673 ctype 1681 cdef PetscPCCompositeType cval = ctype 2018 cdef PetscPCMGCycleType ctype = cycle_type [all …]
|
| H A D | FE.pyx | 126 ctype: DM.PolytopeType, 140 ctype 160 cdef PetscDMPolytopeType cCellType = ctype
|
| /petsc/src/snes/impls/al/ |
| H A D | al.c | 64 … PetscErrorCode SNESNewtonALSetCorrectionType_NEWTONAL(SNES snes, SNESNewtonALCorrectionType ctype) in SNESNewtonALSetCorrectionType_NEWTONAL() argument 69 al->correction_type = ctype; in SNESNewtonALSetCorrectionType_NEWTONAL() 89 PetscErrorCode SNESNewtonALSetCorrectionType(SNES snes, SNESNewtonALCorrectionType ctype) in SNESNewtonALSetCorrectionType() argument 93 PetscValidLogicalCollectiveEnum(snes, ctype, 2); in SNESNewtonALSetCorrectionType() 94 …Method(snes, "SNESNewtonALSetCorrectionType_C", (SNES, SNESNewtonALCorrectionType), (snes, ctype)); in SNESNewtonALSetCorrectionType()
|
| /petsc/src/vec/is/is/utils/ |
| H A D | iscoloring.c | 35 coloring->ctype = type; in ISColoringSetType() 57 *type = coloring->ctype; in ISColoringGetType() 164 …scCall(PetscViewerASCIIPrintf(viewer, "ISColoringType: %s\n", ISColoringTypes[iscoloring->ctype])); in ISColoringView() 255 if (iscoloring->ctype == IS_COLORING_GLOBAL) { in ISColoringGetIS() 259 } else if (iscoloring->ctype == IS_COLORING_LOCAL) { in ISColoringGetIS() 369 (*iscoloring)->ctype = IS_COLORING_GLOBAL; in ISColoringCreate()
|
| /petsc/src/dm/impls/redundant/ |
| H A D | dmredundant.c | 175 static PetscErrorCode DMCreateColoring_Redundant(DM dm, ISColoringType ctype, ISColoring *coloring) in DMCreateColoring_Redundant() argument 182 switch (ctype) { in DMCreateColoring_Redundant() 190 …RQ(PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_WRONG, "Unknown ISColoringType %d", (int)ctype); in DMCreateColoring_Redundant() 195 PetscCall(ISColoringSetType(*coloring, ctype)); in DMCreateColoring_Redundant()
|
| /petsc/src/dm/impls/da/ |
| H A D | fdda.c | 187 PetscErrorCode DMCreateColoring_DA(DM da, ISColoringType ctype, ISColoring *coloring) in DMCreateColoring_DA() argument 223 if (ctype == IS_COLORING_LOCAL) { in DMCreateColoring_DA() 245 if (dim == 1) PetscCall(DMCreateColoring_DA_1d_MPIAIJ(da, ctype, coloring)); in DMCreateColoring_DA() 246 else if (dim == 2) PetscCall(DMCreateColoring_DA_2d_MPIAIJ(da, ctype, coloring)); in DMCreateColoring_DA() 247 else if (dim == 3) PetscCall(DMCreateColoring_DA_3d_MPIAIJ(da, ctype, coloring)); in DMCreateColoring_DA() 259 PetscErrorCode DMCreateColoring_DA_2d_MPIAIJ(DM da, ISColoringType ctype, ISColoring *coloring) in DMCreateColoring_DA_2d_MPIAIJ() argument 283 PetscCall(DMCreateColoring_DA_2d_5pt_MPIAIJ(da, ctype, coloring)); in DMCreateColoring_DA_2d_MPIAIJ() 285 if (ctype == IS_COLORING_GLOBAL) { in DMCreateColoring_DA_2d_MPIAIJ() 298 } else if (ctype == IS_COLORING_LOCAL) { in DMCreateColoring_DA_2d_MPIAIJ() 317 …RQ(PetscObjectComm((PetscObject)da), PETSC_ERR_ARG_WRONG, "Unknown ISColoringType %d", (int)ctype); in DMCreateColoring_DA_2d_MPIAIJ() [all …]
|
| H A D | da.c | 641 PetscErrorCode DMDASetInterpolationType(DM da, DMDAInterpolationType ctype) in DMDASetInterpolationType() argument 647 PetscValidLogicalCollectiveEnum(da, ctype, 2); in DMDASetInterpolationType() 648 dd->interptype = ctype; in DMDASetInterpolationType() 669 PetscErrorCode DMDAGetInterpolationType(DM da, DMDAInterpolationType *ctype) in DMDAGetInterpolationType() argument 675 PetscAssertPointer(ctype, 2); in DMDAGetInterpolationType() 676 *ctype = dd->interptype; in DMDAGetInterpolationType()
|
| /petsc/include/petsc/private/ |
| H A D | isimpl.h | 98 ISColoringType ctype; member
|
| H A D | pcpatchimpl.h | 15 …PCPatchConstructType ctype; /* Algorithm for patch const… member
|
| /petsc/src/ksp/pc/impls/mg/ |
| H A D | mg.c | 1565 static PetscErrorCode PCMGSetAdaptCoarseSpaceType_MG(PC pc, PCMGCoarseSpaceType ctype) in PCMGSetAdaptCoarseSpaceType_MG() argument 1570 mg->adaptInterpolation = ctype != PCMG_ADAPT_NONE ? PETSC_TRUE : PETSC_FALSE; in PCMGSetAdaptCoarseSpaceType_MG() 1571 mg->coarseSpaceType = ctype; in PCMGSetAdaptCoarseSpaceType_MG() 1576 static PetscErrorCode PCMGGetAdaptCoarseSpaceType_MG(PC pc, PCMGCoarseSpaceType *ctype) in PCMGGetAdaptCoarseSpaceType_MG() argument 1581 *ctype = mg->coarseSpaceType; in PCMGGetAdaptCoarseSpaceType_MG() 1625 PetscErrorCode PCMGSetAdaptCoarseSpaceType(PC pc, PCMGCoarseSpaceType ctype) in PCMGSetAdaptCoarseSpaceType() argument 1629 PetscValidLogicalCollectiveEnum(pc, ctype, 2); in PCMGSetAdaptCoarseSpaceType() 1630 PetscTryMethod(pc, "PCMGSetAdaptCoarseSpaceType_C", (PC, PCMGCoarseSpaceType), (pc, ctype)); in PCMGSetAdaptCoarseSpaceType() 1649 PetscErrorCode PCMGGetAdaptCoarseSpaceType(PC pc, PCMGCoarseSpaceType *ctype) in PCMGGetAdaptCoarseSpaceType() argument 1653 PetscAssertPointer(ctype, 2); in PCMGGetAdaptCoarseSpaceType() [all …]
|
| /petsc/src/ksp/pc/impls/deflation/ |
| H A D | deflation.c | 463 MatCompositeType ctype; in PCSetUp_Deflation() local 485 PetscCall(MatCompositeGetType(def->W, &ctype)); in PCSetUp_Deflation() 492 PetscCall(MatCompositeGetType(def->Wt, &ctype)); in PCSetUp_Deflation() 497 if (match && ctype == MAT_COMPOSITE_MULTIPLICATIVE) { in PCSetUp_Deflation()
|
| /petsc/src/mat/impls/aij/seq/ |
| H A D | fdaij.c | 51 c->ctype = iscoloring->ctype; in MatFDColoringCreate_SeqXAIJ()
|
| /petsc/src/mat/matfd/ |
| H A D | fdmatrix.c | 450 c->ctype = iscoloring->ctype; in MatFDColoringCreate()
|
| /petsc/src/snes/impls/patch/ |
| H A D | snespatch.c | 404 PetscErrorCode SNESPatchSetConstructType(SNES snes, PCPatchConstructType ctype, PetscErrorCode (*fu… in SNESPatchSetConstructType() argument 409 PetscCall(PCPatchSetConstructType(patch->pc, ctype, func, ctx)); in SNESPatchSetConstructType()
|
| /petsc/src/snes/impls/multiblock/ |
| H A D | multiblock.c | 389 PCCompositeType ctype; in SNESSetFromOptions_Multiblock() local 397 …sition", "PCFieldSplitSetType", PCCompositeTypes, (PetscEnum)mb->type, (PetscEnum *)&ctype, &flg)); in SNESSetFromOptions_Multiblock() 398 if (flg) PetscCall(SNESMultiblockSetType(snes, ctype)); in SNESSetFromOptions_Multiblock()
|
| /petsc/src/ksp/pc/impls/patch/ |
| H A D | pcpatch.c | 446 PetscErrorCode PCPatchSetConstructType(PC pc, PCPatchConstructType ctype, PetscErrorCode (*func)(PC… in PCPatchSetConstructType() argument 451 patch->ctype = ctype; in PCPatchSetConstructType() 452 switch (ctype) { in PCPatchSetConstructType() 475 …ect)pc), PETSC_ERR_USER, "Unknown patch construction type %" PetscInt_FMT, (PetscInt)patch->ctype); in PCPatchSetConstructType() 481 PetscErrorCode PCPatchGetConstructType(PC pc, PCPatchConstructType *ctype, PetscErrorCode (**func)(… in PCPatchGetConstructType() argument 486 *ctype = patch->ctype; in PCPatchGetConstructType() 487 switch (patch->ctype) { in PCPatchGetConstructType() 498 …ect)pc), PETSC_ERR_USER, "Unknown patch construction type %" PetscInt_FMT, (PetscInt)patch->ctype); in PCPatchGetConstructType() 946 } else if (patch->ctype == PC_PATCH_PARDECOMP) { in PCPatchCreateCellPatches() 991 if (!patch->user_patches && patch->ctype != PC_PATCH_PARDECOMP) { in PCPatchCreateCellPatches()
|
| /petsc/src/dm/interface/ |
| H A D | dm.c | 229 PetscErrorCode DMSetVecType(DM dm, VecType ctype) in DMSetVecType() argument 235 PetscAssertPointer(ctype, 2); in DMSetVecType() 237 PetscCall(PetscStrallocpy(ctype, (char **)&dm->vectype)); in DMSetVecType() 257 PetscErrorCode DMGetVecType(DM da, VecType *ctype) in DMGetVecType() argument 261 *ctype = da->vectype; in DMGetVecType() 336 PetscErrorCode DMSetISColoringType(DM dm, ISColoringType ctype) in DMSetISColoringType() argument 340 dm->coloringtype = ctype; in DMSetISColoringType() 363 PetscErrorCode DMGetISColoringType(DM dm, ISColoringType *ctype) in DMGetISColoringType() argument 367 *ctype = dm->coloringtype; in DMGetISColoringType() 387 PetscErrorCode DMSetMatType(DM dm, MatType ctype) in DMSetMatType() argument [all …]
|
| /petsc/src/dm/impls/composite/ |
| H A D | pack.c | 1484 static PetscErrorCode DMCreateColoring_Composite(DM dm, ISColoringType ctype, ISColoring *coloring) in DMCreateColoring_Composite() argument 1494 …PetscCheck(ctype != IS_COLORING_LOCAL, PetscObjectComm((PetscObject)dm), PETSC_ERR_SUP, "Only glob… in DMCreateColoring_Composite() 1495 …PetscCheck(ctype == IS_COLORING_GLOBAL, PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_OUTOFRANGE… in DMCreateColoring_Composite()
|