| /petsc/src/ts/adapt/interface/ |
| H A D | tsadapt.c | 960 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 D | petscopt_ex6 | 16 -tmax 4.0
|
| H A D | petscopt_ex7 | 11 #-tmax 4.0
|
| H A D | ex5.c | 66 PetscReal tmax = 20.0; variable 118 for (i = 0; i < user->nsamples; i++) t[i] = (i + 1) * tmax / user->nsamples; in WindSpeeds()
|
| H A D | ex6.c | 33 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 D | ex13f90.F90 | 239 PetscInt m, n, t, tmax, i, j 252 tmax = 2 309 do t = 1, tmax
|
| H A D | ex13.c | 32 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 D | ex1f.F90 | 203 PetscReal tmax 304 tmax = 1.e12 306 PetscCallA(TSSetMaxTime(ts, tmax, ierr))
|
| H A D | ex14.c | 1043 …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 D | ex9busadj.c | 88 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 D | ex9busoptfd.c | 85 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 D | ex9busdmnetwork.c | 96 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 D | ex9bus.c | 119 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 D | ex9busopt.c | 95 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 D | ex48.c | 924 …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 D | testcase3D.cas | 320 (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 …]
|