Searched refs:Theta (Results 1 – 6 of 6) sorted by relevance
| /petsc/src/ts/impls/implicit/theta/ |
| H A D | theta.c | 15 PetscReal Theta; member 130 if (th->Theta != 1.0) { in TSThetaEvaluateCostIntegral() 132 … PetscCall(VecAXPY(quadts->vec_sol, th->time_step0 * (1.0 - th->Theta), ts->vec_costintegrand)); in TSThetaEvaluateCostIntegral() 135 PetscCall(VecAXPY(quadts->vec_sol, th->time_step0 * th->Theta, ts->vec_costintegrand)); in TSThetaEvaluateCostIntegral() 212 th->shift = 1 / (th->Theta * ts->time_step); in TSStep_Theta() 213 th->stage_time = ts->ptime + (th->endpoint ? (PetscReal)1 : th->Theta) * ts->time_step; in TSStep_Theta() 220 PetscCall(VecScale(th->affine, (th->Theta - 1) / th->Theta)); in TSStep_Theta() 232 …if (th->Theta == 1.0) PetscCall(VecCopy(th->X, ts->vec_sol)); /* BEULER, stage alread… in TSStep_Theta() 430 if (th->Theta == 1.) { in TSAdjointStep_Theta() 442 th->stage_time = th->endpoint ? ts->ptime : (ts->ptime + (1. - th->Theta) * ts->time_step); in TSAdjointStep_Theta() [all …]
|
| /petsc/src/ts/tutorials/ |
| H A D | ex10.c | 241 static PetscErrorCode RDGetLocalArrays(RD rd, TS ts, Vec X, Vec Xdot, PetscReal *Theta, PetscReal *… in RDGetLocalArrays() argument 261 if (istheta && rd->endpoint) PetscCall(TSThetaGetTheta(ts, Theta)); in RDGetLocalArrays() 262 else *Theta = 1.; in RDGetLocalArrays() 265 …PetscCall(VecWAXPY(*X0loc, -(*Theta) * (*dt), *Xloc_t, *Xloc)); /* back out the value at the s… in RDGetLocalArrays() 316 PetscReal hx, Theta, dt; in RDIFunction_FD() local 321 PetscCall(RDGetLocalArrays(rd, ts, X, Xdot, &Theta, &dt, &X0loc, &x0, &Xloc, &x, &Xloc_t, &xdot)); in RDIFunction_FD() 332 rad = (1. - Theta) * RDRadiation(rd, &x0[i], 0) + Theta * RDRadiation(rd, &x[i], 0); in RDIFunction_FD() 348 PetscScalar D_R, bcTheta = rd->bcmidpoint ? Theta : 1.; in RDIFunction_FD() 369 …PetscScalar diff = (1. - Theta) * RDDiffusion(rd, hx, x0, i, 0) + Theta * RDDiffusion(rd, hx, x, i… in RDIFunction_FD() 384 PetscReal hx, Theta, dt; in RDIJacobian_FD() local [all …]
|
| /petsc/doc/changes/ |
| H A D | 31.md | 125 - Add Theta and General Linear time integrators (TSTHETA, TSGL).
|
| H A D | 312.md | 196 and Theta methods
|
| /petsc/doc/manual/ |
| H A D | ts.md | 1314 and the Theta methods (for stiff DAEs) 1319 Theta methods for cost function with an integral term
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | TS.pyx | 3002 # --- Theta ---
|