Home
last modified time | relevance | path

Searched refs:stype (Results 1 – 25 of 50) sorted by relevance

12

/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A Dpetscdevice.pxi85 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 DDMDA.pyx106 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 DDMStag.pyx128 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 Ddcontext.cxx399 …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 Dpetscdevice_interface_internal.hpp182 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 Ddevice.cxx695 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 Dex134.c13 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 Dex12.c21 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 Dex1.c45 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 Dex5.c17 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 Dex3.c96 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 Dex4.c8 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 Dex51.c17 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 Dex43.c61 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 Dqn.c325 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 Dtrajmemory.c106 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 Dfactor.c443 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 Dfactimpl.c176 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 Dsymbadbrdn.c96 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 Dqr.c11 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 Dicc.c8 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 Dtest_device.py44 stype = dctx.getStreamType()
45 dctx.setStreamType(stype)
/petsc/src/ksp/ksp/utils/lmvm/rescale/
H A Dsymbrdnrescale.c394 …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 Dsor.c55 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 Dlu.c43 MatSolverType stype; in PCSetUp_LU() local
137 PetscCall(PCFactorGetMatSolverType(pc, &stype)); in PCSetUp_LU()
138 if (!stype) { in PCSetUp_LU()

12