Lines Matching refs:adapt
3 static PetscErrorCode TSAdaptChoose_CFL(TSAdapt adapt, TS ts, PetscReal h, PetscInt *next_sc, Petsc… in TSAdaptChoose_CFL() argument
11 PetscCall(TSAdaptCandidatesGet(adapt, &ncandidates, NULL, NULL, &ccflarray, NULL)); in TSAdaptChoose_CFL()
14 …PetscCheck(adapt->always_accept, PetscObjectComm((PetscObject)adapt), PETSC_ERR_SUP, "Step rejecti… in TSAdaptChoose_CFL()
19 if (adapt->always_accept) { in TSAdaptChoose_CFL()
20 …PetscCall(PetscInfo(adapt, "Step length %g with scheme of CFL coefficient %g did not satisfy user-… in TSAdaptChoose_CFL()
22 …PetscCall(PetscInfo(adapt, "Step length %g with scheme of CFL coefficient %g did not satisfy user-… in TSAdaptChoose_CFL()
28 hcfl = adapt->safety * cfltimestep * ccfl; in TSAdaptChoose_CFL()
29 if (hcfl < adapt->dt_min) { in TSAdaptChoose_CFL()
30 …adapt, "Cannot satisfy CFL constraint %g (with %g safety) at minimum time step %g with method coef… in TSAdaptChoose_CFL()
34 *next_h = PetscClipInterval(hcfl, adapt->dt_min, adapt->dt_max); in TSAdaptChoose_CFL()
48 PETSC_EXTERN PetscErrorCode TSAdaptCreate_CFL(TSAdapt adapt) in TSAdaptCreate_CFL() argument
51 adapt->ops->choose = TSAdaptChoose_CFL; in TSAdaptCreate_CFL()