Lines Matching refs:endpoint

18   PetscBool    endpoint;  member
128 if (th->endpoint) { in TSThetaEvaluateCostIntegral()
213 th->stage_time = ts->ptime + (th->endpoint ? (PetscReal)1 : th->Theta) * ts->time_step; in TSStep_Theta()
216 if (th->endpoint) { /* This formulation assumes linear time-independent mass matrix */ in TSStep_Theta()
223 PetscCall(TSTheta_SNESSolve(ts, th->endpoint ? th->affine : NULL, th->X)); in TSStep_Theta()
228 if (th->endpoint) { in TSStep_Theta()
442 th->stage_time = th->endpoint ? ts->ptime : (ts->ptime + (1. - th->Theta) * ts->time_step); in TSAdjointStep_Theta()
446 if (!th->endpoint) { in TSAdjointStep_Theta()
454 if (th->endpoint) { in TSAdjointStep_Theta()
475 if (th->endpoint) { in TSAdjointStep_Theta()
495 …PetscCheck(th->endpoint, PetscObjectComm((PetscObject)ts), PETSC_ERR_SUP, "Operation not implement… in TSAdjointStep_Theta()
524 if (th->endpoint) { /* two-stage Theta methods with th->Theta!=1, th->Theta==1 leads to BEuler */ in TSAdjointStep_Theta()
682 if (th->endpoint) dt *= th->Theta; in TSInterpolate_Theta()
763 if (th->endpoint) { /* 2-stage method*/ in TSForwardStep_Theta()
796 if (th->endpoint) { in TSForwardStep_Theta()
808 if (th->endpoint) { /* 2-stage method only */ in TSForwardStep_Theta()
823 if (th->endpoint) { in TSForwardStep_Theta()
846 if (!th->endpoint) { in TSForwardStep_Theta()
862 …if (!th->endpoint) PetscCall(MatAXPY(ts->mat_sensip, 1. / th->Theta, MatDeltaFwdSensip, SAME_NONZE… in TSForwardStep_Theta()
873 if (!th->endpoint && th->Theta != 1.0) *ns = 1; /* midpoint form */ in TSForwardGetStages_Theta()
877 if (!th->endpoint && th->Theta != 1.0) { in TSForwardGetStages_Theta()
1037 if (th->endpoint) PetscCall(VecDuplicate(ts->vec_sol, &th->affine)); in TSSetUp_Theta()
1055 ts->stifflyaccurate = (!th->endpoint && th->Theta != 1.0) ? PETSC_FALSE : PETSC_TRUE; in TSSetUp_Theta()
1091 …d of midpoint form of the Theta method", "TSThetaSetEndpoint", th->endpoint, &th->endpoint, NULL)); in TSSetFromOptions_Theta()
1132 static PetscErrorCode TSThetaGetEndpoint_Theta(TS ts, PetscBool *endpoint) in TSThetaGetEndpoint_Theta() argument
1137 *endpoint = th->endpoint; in TSThetaGetEndpoint_Theta()
1146 th->endpoint = flg; in TSThetaSetEndpoint_Theta()
1170 if (!th->endpoint && th->Theta != 1.0) *ns = 1; /* midpoint form */ in TSGetStages_Theta()
1174 if (!th->endpoint && th->Theta != 1.0) { in TSGetStages_Theta()
1353 PetscErrorCode TSThetaGetEndpoint(TS ts, PetscBool *endpoint) in TSThetaGetEndpoint() argument
1357 PetscAssertPointer(endpoint, 2); in TSThetaGetEndpoint()
1358 PetscUseMethod(ts, "TSThetaGetEndpoint_C", (TS, PetscBool *), (ts, endpoint)); in TSThetaGetEndpoint()
1397 …PetscCheck(!th->endpoint, PetscObjectComm((PetscObject)ts), PETSC_ERR_OPT_OVERWRITE, "Can not chan… in TSSetUp_BEuler()
1435 …PetscCheck(th->endpoint, PetscObjectComm((PetscObject)ts), PETSC_ERR_OPT_OVERWRITE, "Can not chang… in TSSetUp_CN()