Home
last modified time | relevance | path

Searched refs:hmax (Results 1 – 4 of 4) sorted by relevance

/petsc/src/ts/adapt/interface/
H A Dtsadapt.c668 PetscErrorCode TSAdaptSetStepLimits(TSAdapt adapt, PetscReal hmin, PetscReal hmax) in TSAdaptSetStepLimits() argument
673 PetscValidLogicalCollectiveReal(adapt, hmax, 3); in TSAdaptSetStepLimits()
675 …ck(hmax == (PetscReal)PETSC_CURRENT || hmax >= 0, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Mini… in TSAdaptSetStepLimits()
677 if (hmax != (PetscReal)PETSC_CURRENT) adapt->dt_max = hmax; in TSAdaptSetStepLimits()
679 hmax = adapt->dt_max; in TSAdaptSetStepLimits()
680 …PetscCheck(hmax > hmin, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Maximum time step %g must grea… in TSAdaptSetStepLimits()
700 PetscErrorCode TSAdaptGetStepLimits(TSAdapt adapt, PetscReal *hmin, PetscReal *hmax) in TSAdaptGetStepLimits() argument
705 if (hmax) PetscAssertPointer(hmax, 3); in TSAdaptGetStepLimits()
707 if (hmax) *hmax = adapt->dt_max; in TSAdaptGetStepLimits()
743 PetscReal safety, reject_safety, clip[2], scale, hmin, hmax; in TSAdaptSetFromOptions() local
[all …]
/petsc/src/dm/impls/plex/tests/
H A Dex19.c10 PetscReal hmax, hmin; /* Max and min sizes prescribed by the metric */ member
40 options->hmax = 0.5; in ProcessOptions()
46 …Real("-hmax", "Max size prescribed by the metric", "ex19.c", options->hmax, &options->hmax, NULL)); in ProcessOptions()
119 PetscReal lambda = 1 / (user->hmax * user->hmax); in ComputeMetric()
149 h = user->hmax - (user->hmax - user->hmin) * PetscRealPart(vcoords[0]); in ComputeMetric()
152 …h = user->hmax * PetscAbsReal(((PetscReal)1.0) - PetscExpReal(-PetscAbsScalar(vcoords[0] - (PetscR… in ComputeMetric()
/petsc/src/binding/petsc4py/test/
H A Dtest_ts_py.py180 hmin, hmax = self.ts.getStepLimits()
182 self.assertEqual(2.0, hmax)
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DTS.pyx2559 def setStepLimits(self, hmin: float, hmax: float) -> None:
2568 hmax
2578 cdef PetscReal hmaxr = toReal(hmax)