Home
last modified time | relevance | path

Searched refs:tmax (Results 1 – 16 of 16) sorted by relevance

/petsc/src/ts/adapt/interface/
H A Dtsadapt.c960 PetscReal t = ts->ptime + ts->time_step, tend, tmax, h1, hmax; in TSAdaptChoose() local
987 …if (ts->eval_times->time_point_idx + 1 < ts->eval_times->num_time_points) tmax = ts->eval_times->t… in TSAdaptChoose()
988 else tmax = ts->max_time; /* hit the last span time point */ in TSAdaptChoose()
989 else tmax = ts->eval_times->time_points[ts->eval_times->time_point_idx]; in TSAdaptChoose()
990 } else tmax = ts->max_time; in TSAdaptChoose()
991 tmax = PetscMin(tmax, ts->max_time); in TSAdaptChoose()
992 hmax = tmax - t; in TSAdaptChoose()
994 if (t < tmax && tend > tmax) *next_h = hmax; in TSAdaptChoose()
995 if (t < tmax && tend < tmax && h1 * b > hmax) *next_h = hmax / 2; in TSAdaptChoose()
996 if (t < tmax && tend < tmax && h1 * a > hmax) *next_h = hmax; in TSAdaptChoose()
/petsc/src/ts/tutorials/power_grid/
H A Dpetscopt_ex616 -tmax 4.0
H A Dpetscopt_ex711 #-tmax 4.0
H A Dex5.c66 PetscReal tmax = 20.0; variable
118 for (i = 0; i < user->nsamples; i++) t[i] = (i + 1) * tmax / user->nsamples; in WindSpeeds()
H A Dex6.c33 PetscScalar tmax; /* Final time */ member
87 PetscCall(TSSetMaxTime(ts, user.tmax)); in main()
484 user->tmax = 2.0; in Parameter_settings()
503 PetscCall(PetscOptionsGetScalar(NULL, NULL, "-tmax", &user->tmax, &flg)); in Parameter_settings()
/petsc/src/ksp/ksp/tutorials/
H A Dex13f90.F90239 PetscInt m, n, t, tmax, i, j
252 tmax = 2
309 do t = 1, tmax
H A Dex13.c32 PetscInt m = 6, n = 7, t, tmax = 2, i, Ii, j, N; in main() local
98 for (t = 0; t < tmax; t++) { in main()
/petsc/src/ts/tutorials/
H A Dex1f.F90203 PetscReal tmax
304 tmax = 1.e12
306 PetscCallA(TSSetMaxTime(ts, tmax, ierr))
H A Dex14.c1043 …PetscReal nrm2, tmin[3] = {1e100, 1e100, 1e100}, tmax[3] = {-1e100, -1e100, -1e100}, min[3], ma… in THISolveStatistics() local
1054 tmax[0] = PetscMax(u, tmax[0]); in THISolveStatistics()
1055 tmax[1] = PetscMax(v, tmax[1]); in THISolveStatistics()
1056 tmax[2] = PetscMax(c, tmax[2]); in THISolveStatistics()
1060 …PetscCallMPI(MPIU_Allreduce(tmax, max, 3, MPIU_REAL, MPIU_MAX, PetscObjectComm((PetscObject)thi))); in THISolveStatistics()
/petsc/src/ts/tutorials/power_grid/stability_9bus/
H A Dex9busadj.c88 PetscReal t0, tmax; member
834 user.tmax = 5.0; in main()
836 PetscCall(PetscOptionsReal("-tmax", "", "", user.tmax, &user.tmax, NULL)); in main()
889 PetscCall(TSSetMaxTime(ts, user.tmax)); in main()
960 PetscCall(TSSetMaxTime(ts, user.tmax)); in main()
H A Dex9busoptfd.c85 PetscReal t0, tmax; member
872 user.tmax = 1.5; in main()
874 PetscCall(PetscOptionsReal("-tmax", "", "", user.tmax, &user.tmax, NULL)); in main()
1056 PetscCall(TSSetMaxTime(ts, ctx->tmax)); in FormFunction()
1126 PetscCall(TSSetMaxTime(ts, ctx->tmax)); in FormFunction()
H A Dex9busdmnetwork.c96 PetscReal t0, tmax; /* initial time and final time */ member
1047 user.tmax = 0.1; in main()
1049 PetscCall(PetscOptionsReal("-tmax", "", "", user.tmax, &user.tmax, NULL)); in main()
1123 PetscCall(TSSetMaxTime(ts, user.tmax)); in main()
H A Dex9bus.c119 PetscReal t0, tmax; member
1125 user.tmax = 5.0; in main()
1127 PetscCall(PetscOptionsReal("-tmax", "", "", user.tmax, &user.tmax, NULL)); in main()
1202 PetscCall(TSSetMaxTime(ts, user.tmax)); in main()
H A Dex9busopt.c95 PetscReal t0, tmax; member
1078 user.tmax = 1.3; in main()
1080 PetscCall(PetscOptionsReal("-tmax", "", "", user.tmax, &user.tmax, NULL)); in main()
1374 PetscCall(TSSetMaxTime(ts, ctx->tmax)); in FormFunctionGradient()
/petsc/src/snes/tutorials/
H A Dex48.c924 …PetscReal nrm2, tmin[3] = {1e100, 1e100, 1e100}, tmax[3] = {-1e100, -1e100, -1e100}, min[… in THISolveStatistics() local
935 tmax[0] = PetscMax(u, tmax[0]); in THISolveStatistics()
936 tmax[1] = PetscMax(v, tmax[1]); in THISolveStatistics()
937 tmax[2] = PetscMax(c, tmax[2]); in THISolveStatistics()
941 …PetscCallMPI(MPIU_Allreduce(tmax, max, 3, MPIU_REAL, MPIU_MAX, PetscObjectComm((PetscObject)thi))); in THISolveStatistics()
/petsc/share/petsc/datafiles/meshes/
H A Dtestcase3D.cas320 (inert/enth-tmax 5000.)
843 (hg/tmax-value2 2300)
844 (hg/tmax-value1 1.1)
845 (hg/tmax-method 0)
937 (soot/tmax-value2 2300)
938 (soot/tmax-value1 1.1)
939 (soot/tmax-method 0)
1001 (sox/tmax-value2 2300)
1002 (sox/tmax-value1 1.1)
1003 (sox/tmax-method 0)
[all …]