| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | petscdevice.pxi | 85 cdef inline PetscStreamType asStreamType(object stype) except <PetscStreamType>(-1): argument 86 if isinstance(stype, str): 87 stype = stype.upper() 89 return getattr(DeviceContext.StreamType, stype) 91 raise ValueError("unknown stream type: %s" % stype) 92 return stype 94 cdef inline str toStreamType(PetscStreamType stype): argument 96 return DeviceContext.StreamType.__enum2str[stype] 98 raise NotImplementedError("unhandled PetscStreamType %d" % <int>stype)
|
| H A D | DMDA.pyx | 106 cdef PetscDMDAStencilType stype = DMDA_STENCIL_BOX 133 stype = asStencil(stencil_type) 142 btx, bty, btz, stype, swidth, 184 cdef PetscDMDAStencilType stype = DMDA_STENCIL_BOX 192 &stype)) 203 stype = asStencil(stencil_type) 210 btx, bty, btz, stype, swidth, 437 stype 445 cdef PetscDMDAStencilType stype = asStencil(stencil_type) 446 CHKERR(DMDASetStencilType(self.dm, stype)) [all …]
|
| H A D | DMStag.pyx | 128 cdef PetscDMStagStencilType stype = DMSTAG_STENCIL_NONE 130 stype = asStagStencil(stencil_type) 151 CHKERR(DMStagCreate1d(ccomm, btx, M, dof0, dof1, stype, swidth, lx, &newda)) 153 …CHKERR(DMStagCreate2d(ccomm, btx, bty, M, N, m, n, dof0, dof1, dof2, stype, swidth, lx, ly, &newda… 155 …gCreate3d(ccomm, btx, bty, btz, M, N, P, m, n, p, dof0, dof1, dof2, dof3, stype, swidth, lx, ly, l… 198 cdef PetscDMStagStencilType stype = asStagStencil(stenciltype) 199 CHKERR(DMStagSetStencilType(self.dm, stype)) 457 cdef PetscDMStagStencilType stype = DMSTAG_STENCIL_BOX 458 CHKERR(DMStagGetStencilType(self.dm, &stype)) 459 return toStagStencil(stype)
|
| /petsc/src/sys/objects/device/interface/ |
| H A D | dcontext.cxx | 399 …scDeviceContextDuplicate_Private(PetscDeviceContext dctx, PetscStreamType stype, PetscDeviceContex… in PetscDeviceContextDuplicate_Private() argument 404 PetscCall(PetscDeviceContextSetStreamType(*dctxdup, stype)); in PetscDeviceContextDuplicate_Private() 445 auto stype = PETSC_STREAM_DEFAULT; in PetscDeviceContextDuplicate() local 450 PetscCall(PetscDeviceContextGetStreamType(dctx, &stype)); in PetscDeviceContextDuplicate() 451 PetscCall(PetscDeviceContextDuplicate_Private(dctx, stype, dctxdup)); in PetscDeviceContextDuplicate() 587 PetscErrorCode PetscDeviceContextForkWithStreamType(PetscDeviceContext dctx, PetscStreamType stype,… in PetscDeviceContextForkWithStreamType() argument 632 PetscCall(PetscDeviceContextDuplicate_Private(dctx, stype, &childctx)); in PetscDeviceContextForkWithStreamType() 680 auto stype = PETSC_STREAM_DEFAULT; in PetscDeviceContextFork() local 684 PetscCall(PetscDeviceContextGetStreamType(dctx, &stype)); in PetscDeviceContextFork() 685 PetscCall(PetscDeviceContextForkWithStreamType(dctx, stype, n, dsub)); in PetscDeviceContextFork() [all …]
|
| H A D | petscdevice_interface_internal.hpp | 182 auto stype = static_cast<PetscInt>(streamType.first); in PetscDeviceContextQueryOptions_Internal() local 187 …SetStreamType", PetscStreamTypes, PETSC_STREAM_MAX, PetscStreamTypes[stype], &stype, &streamType.s… in PetscDeviceContextQueryOptions_Internal() 189 streamType.first = PetscStreamTypeCast(stype); in PetscDeviceContextQueryOptions_Internal()
|
| H A D | device.cxx | 695 auto stype = std::make_pair(PETSC_DEVICE_CONTEXT_DEFAULT_STREAM_TYPE, PETSC_FALSE); in PetscDeviceInitializeFromOptions_Internal() local 698 PetscCall(PetscDeviceContextQueryOptions_Internal(PetscOptionsObject, dtype, stype)); in PetscDeviceInitializeFromOptions_Internal() 702 if (stype.second) PetscCall(PetscDeviceContextSetRootStreamType_Internal(stype.first)); in PetscDeviceInitializeFromOptions_Internal()
|
| /petsc/src/mat/tests/ |
| H A D | ex134.c | 13 MatSolverType stype = MATSOLVERPETSC; in Assemble() local 48 if (j == 0) stype = MATSOLVERMUMPS; in Assemble() 56 stype = MATSOLVERMKL_CPARDISO; in Assemble() 62 PetscCall(MatGetFactor(A, stype, MAT_FACTOR_CHOLESKY, &F)); in Assemble() 66 PetscCall(MatGetFactor(A, stype, MAT_FACTOR_LU, &F)); in Assemble()
|
| /petsc/src/dm/tutorials/ |
| H A D | ex12.c | 21 DMDAStencilType stype = DMDA_STENCIL_BOX; in main() local 26 if (flg) stype = DMDA_STENCIL_STAR; in main() 29 …PetscCall(DMDACreate2d(PETSC_COMM_WORLD, bx, by, stype, M, N, PETSC_DECIDE, PETSC_DECIDE, 1, 1, NU… in main()
|
| H A D | ex1.c | 45 DMDAStencilType stype = DMDA_STENCIL_BOX; in main() local 60 if (flg) stype = DMDA_STENCIL_STAR; in main() 63 …PetscCall(DMDACreate2d(PETSC_COMM_WORLD, bx, by, stype, M, N, PETSC_DECIDE, PETSC_DECIDE, 1, 1, NU… in main()
|
| H A D | ex5.c | 17 DMDAStencilType stype = DMDA_STENCIL_BOX; in main() local 28 if (flg) stype = DMDA_STENCIL_STAR; in main() 31 …PetscCall(DMDACreate2d(PETSC_COMM_WORLD, bx, by, stype, M, N, PETSC_DECIDE, PETSC_DECIDE, 1, 1, NU… in main()
|
| H A D | ex3.c | 96 DMDAStencilType stype = DMDA_STENCIL_BOX; in main() local 113 …PetscCall(DMDACreate2d(PETSC_COMM_WORLD, bx, by, stype, M, N, PETSC_DECIDE, PETSC_DECIDE, 1, 1, NU… in main() 115 …PetscCall(DMDACreate3d(PETSC_COMM_WORLD, bx, by, bz, stype, M, N, P, PETSC_DECIDE, PETSC_DECIDE, P… in main()
|
| /petsc/src/sys/objects/device/tests/ |
| H A D | ex4.c | 8 PetscStreamType stype; in DoFork() local 12 PetscCall(PetscDeviceContextGetStreamType(parent, &stype)); in DoFork() 21 …PetscCall(AssertPetscStreamTypesValidAndEqual(sub_stype, stype, "Child stream type %s != parent st… in DoFork()
|
| /petsc/src/dm/tests/ |
| H A D | ex51.c | 17 DMDAStencilType stype = DMDA_STENCIL_BOX; in main() local 31 if (flg) stype = DMDA_STENCIL_STAR; in main() 34 PetscCall(DMDACreate2d(PETSC_COMM_WORLD, bx, by, stype, M, N, m, n, 1, 1, NULL, NULL, &da)); in main()
|
| H A D | ex43.c | 61 DMDAStencilType stype = DMDA_STENCIL_BOX; in main() local 65 …PetscCall(DMDACreate2d(PETSC_COMM_WORLD, bx, by, stype, M, N, PETSC_DECIDE, PETSC_DECIDE, 1, 1, NU… in main()
|
| /petsc/src/snes/impls/qn/ |
| H A D | qn.c | 325 SNESQNScaleType stype = qn->scale_type; in SNESSetFromOptions_QN() local 333 …aling type", "SNESQNSetScaleType", SNESQNScaleTypes, (PetscEnum)stype, (PetscEnum *)&stype, &flg)); in SNESSetFromOptions_QN() 334 if (flg) PetscCall(SNESQNSetScaleType(snes, stype)); in SNESSetFromOptions_QN() 417 PetscErrorCode SNESQNSetScaleType(SNES snes, SNESQNScaleType stype) in SNESQNSetScaleType() argument 421 PetscTryMethod(snes, "SNESQNSetScaleType_C", (SNES, SNESQNScaleType), (snes, stype)); in SNESQNSetScaleType() 425 static PetscErrorCode SNESQNSetScaleType_QN(SNES snes, SNESQNScaleType stype) in SNESQNSetScaleType_QN() argument 430 qn->scale_type = stype; in SNESQNSetScaleType_QN() 431 if (stype == SNES_QN_SCALE_JACOBIAN) snes->usesksp = PETSC_TRUE; in SNESQNSetScaleType_QN()
|
| /petsc/src/ts/trajectory/impls/memory/ |
| H A D | trajmemory.c | 106 SchedulerType stype; member 592 … if (tjsch->stype == TWO_LEVEL_TWO_REVOLVE) diskstack->container[++diskstack->top] = stridenum + 1; in TopLevelStore() 598 … if (tjsch->stype == TWO_LEVEL_TWO_REVOLVE) diskstack->container[++diskstack->top] = stridenum + 1; in TopLevelStore() 606 … if (tjsch->stype == TWO_LEVEL_TWO_REVOLVE) diskstack->container[++diskstack->top] = stridenum; in TopLevelStore() 612 … if (tjsch->stype == TWO_LEVEL_TWO_REVOLVE) diskstack->container[++diskstack->top] = stridenum + 1; in TopLevelStore() 909 static PetscErrorCode ApplyRevolve(PetscViewer viewer, SchedulerType stype, RevolveCTX *rctx, Petsc… in ApplyRevolve() argument 926 if (stype == REVOLVE_ONLINE && whattodo == 8) whattodo = 5; in ApplyRevolve() 927 if (stype == REVOLVE_ONLINE && whattodo == 7) whattodo = 2; in ApplyRevolve() 932 if (stype == REVOLVE_ONLINE && rctx->capo >= total_steps - 1) { in ApplyRevolve() 965 if (stype == REVOLVE_ONLINE && rctx->capo >= total_steps - 1) { in ApplyRevolve() [all …]
|
| /petsc/src/ksp/pc/impls/factor/ |
| H A D | factor.c | 443 PetscErrorCode PCFactorSetMatSolverType(PC pc, MatSolverType stype) in PCFactorSetMatSolverType() argument 447 PetscTryMethod(pc, "PCFactorSetMatSolverType_C", (PC, MatSolverType), (pc, stype)); in PCFactorSetMatSolverType() 467 PetscErrorCode PCFactorGetMatSolverType(PC pc, MatSolverType *stype) in PCFactorGetMatSolverType() argument 473 PetscAssertPointer(stype, 2); in PCFactorGetMatSolverType() 475 if (f) PetscCall((*f)(pc, stype)); in PCFactorGetMatSolverType() 476 else *stype = NULL; in PCFactorGetMatSolverType()
|
| H A D | factimpl.c | 176 PetscErrorCode PCFactorSetMatSolverType_Factor(PC pc, MatSolverType stype) in PCFactorSetMatSolverType_Factor() argument 186 PetscCall(PetscStrcmp(stype, ltype, &flg)); in PCFactorSetMatSolverType_Factor() 187 …"Cannot change solver matrix package from %s to %s after PC has been setup or used", ltype, stype); in PCFactorSetMatSolverType_Factor() 191 PetscCall(PetscStrallocpy(stype, &lu->solvertype)); in PCFactorSetMatSolverType_Factor() 195 PetscErrorCode PCFactorGetMatSolverType_Factor(PC pc, MatSolverType *stype) in PCFactorGetMatSolverType_Factor() argument 200 *stype = lu->solvertype; in PCFactorGetMatSolverType_Factor()
|
| /petsc/src/ksp/ksp/utils/lmvm/symbrdn/ |
| H A D | symbadbrdn.c | 96 MatLMVMSymBroydenScaleType stype; in MatSetFromOptions_LMVMSymBadBrdn() local 105 PetscCall(SymBroydenRescaleGetType(lsb->rescale, &stype)); in MatSetFromOptions_LMVMSymBadBrdn() 106 …if (stype == MAT_LMVM_SYMBROYDEN_SCALE_DIAGONAL) PetscCall(SymBroydenRescaleSetDiagonalMode(lsb->r… in MatSetFromOptions_LMVMSymBadBrdn()
|
| /petsc/src/ksp/pc/impls/factor/qr/ |
| H A D | qr.c | 11 MatSolverType stype; in PCSetUp_QR() local 63 PetscCall(PCFactorGetMatSolverType(pc, &stype)); in PCSetUp_QR() 64 if (!stype) { in PCSetUp_QR()
|
| /petsc/src/ksp/pc/impls/factor/icc/ |
| H A D | icc.c | 8 MatSolverType stype; in PCSetUp_ICC() local 56 PetscCall(PCFactorGetMatSolverType(pc, &stype)); in PCSetUp_ICC() 57 if (!stype) { in PCSetUp_ICC()
|
| /petsc/src/binding/petsc4py/test/ |
| H A D | test_device.py | 44 stype = dctx.getStreamType() 45 dctx.setStreamType(stype)
|
| /petsc/src/ksp/ksp/utils/lmvm/rescale/ |
| H A D | symbrdnrescale.c | 394 …N PetscErrorCode SymBroydenRescaleGetType(SymBroydenRescale ldb, MatLMVMSymBroydenScaleType *stype) in SymBroydenRescaleGetType() argument 397 *stype = ldb->scale_type; in SymBroydenRescaleGetType() 401 …RN PetscErrorCode SymBroydenRescaleSetType(SymBroydenRescale ldb, MatLMVMSymBroydenScaleType stype) in SymBroydenRescaleSetType() argument 404 ldb->scale_type = stype; in SymBroydenRescaleSetType() 410 MatLMVMSymBroydenScaleType stype = ldb->scale_type; in SymBroydenRescaleSetFromOptions() local 415 …VMSymBroydenScaleType", MatLMVMSymBroydenScaleTypes, (PetscEnum)stype, (PetscEnum *)&stype, &flg)); in SymBroydenRescaleSetFromOptions() 428 if (flg) PetscCall(SymBroydenRescaleSetType(ldb, stype)); in SymBroydenRescaleSetFromOptions()
|
| /petsc/src/ksp/pc/impls/sor/ |
| H A D | sor.c | 55 MatSORType stype = jac->sym; in PCApplyRichardson_SOR() local 58 if (guesszero) stype = (MatSORType)(stype | SOR_ZERO_INITIAL_GUESS); in PCApplyRichardson_SOR() 59 PetscCall(MatSOR(pc->pmat, b, jac->omega, stype, jac->fshift, its * jac->its, jac->lits, y)); in PCApplyRichardson_SOR()
|
| /petsc/src/ksp/pc/impls/factor/lu/ |
| H A D | lu.c | 43 MatSolverType stype; in PCSetUp_LU() local 137 PetscCall(PCFactorGetMatSolverType(pc, &stype)); in PCSetUp_LU() 138 if (!stype) { in PCSetUp_LU()
|