Home
last modified time | relevance | path

Searched refs:stepnum (Results 1 – 23 of 23) sorted by relevance

/petsc/src/ts/tests/output/
H A Dex13_2.out1 TSTrajectorySet: stepnum 0, time 2. (stages 0)
2 TSTrajectorySet: stepnum 1, time 9. (stages 0)
3 TSTrajectorySet: stepnum 2, time 1. (stages 0)
4 TSTrajectorySet: stepnum 3, time 3. (stages 0)
5 TSTrajectorySet: stepnum 4, time 6. (stages 0)
6 TSTrajectorySet: stepnum 5, time 7. (stages 0)
7 TSTrajectorySet: stepnum 6, time 5. (stages 0)
8 TSTrajectorySet: stepnum 7, time 10. (stages 0)
9 TSTrajectorySet: stepnum 8, time 4. (stages 0)
10 TSTrajectorySet: stepnum 9, time 8. (stages 0)
[all …]
H A Dex13_1.out1 TSTrajectorySet: stepnum 1, time 2. (stages 0)
2 TSTrajectorySet: stepnum 4, time 9. (stages 0)
3 TSTrajectorySet: stepnum 9, time 1. (stages 0)
4 TSTrajectorySet: stepnum 2, time 3. (stages 0)
5 TSTrajectorySet: stepnum 3, time 6. (stages 0)
6 TSTrajectorySet: stepnum 6, time 7. (stages 0)
7 TSTrajectorySet: stepnum 5, time 5. (stages 0)
8 TSTrajectorySet: stepnum 8, time 10. (stages 0)
9 TSTrajectorySet: stepnum 0, time 4. (stages 0)
10 TSTrajectorySet: stepnum 7, time 8. (stages 0)
[all …]
H A Dex13_3.out1 TSTrajectorySet: stepnum 1, time 2. (stages 0)
2 TSTrajectorySet: stepnum 4, time 9. (stages 0)
3 TSTrajectorySet: stepnum 9, time 1. (stages 0)
4 TSTrajectorySet: stepnum 2, time 3. (stages 0)
5 TSTrajectorySet: stepnum 3, time 6. (stages 0)
6 TSTrajectorySet: stepnum 6, time 7. (stages 0)
7 TSTrajectorySet: stepnum 5, time 5. (stages 0)
8 TSTrajectorySet: stepnum 8, time 10. (stages 0)
9 TSTrajectorySet: stepnum 0, time 4. (stages 0)
10 TSTrajectorySet: stepnum 7, time 8. (stages 0)
[all …]
/petsc/src/ts/tutorials/output/
H A Dex20adj_5.out1 TSTrajectorySet: stepnum 0, time 0. (stages 0)
3 TSTrajectorySet: stepnum 1, time 0.001 (stages 0)
5 TSTrajectorySet: stepnum 2, time 0.002 (stages 0)
6 TSTrajectorySet: stepnum 3, time 0.003 (stages 0)
7 TSTrajectorySet: stepnum 4, time 0.004 (stages 0)
8 TSTrajectorySet: stepnum 5, time 0.005 (stages 0)
10 TSTrajectorySet: stepnum 6, time 0.006 (stages 0)
11 TSTrajectorySet: stepnum 7, time 0.007 (stages 0)
12 TSTrajectorySet: stepnum 8, time 0.008 (stages 0)
13 TSTrajectorySet: stepnum 9, time 0.009 (stages 0)
[all …]
H A Dex20adj_6.out1 TSTrajectorySet: stepnum 0, time 0. (stages 1)
3 TSTrajectorySet: stepnum 1, time 0.001 (stages 1)
4 TSTrajectorySet: stepnum 2, time 0.002 (stages 1)
5 TSTrajectorySet: stepnum 3, time 0.003 (stages 1)
6 TSTrajectorySet: stepnum 4, time 0.004 (stages 1)
7 TSTrajectorySet: stepnum 5, time 0.005 (stages 1)
8 TSTrajectorySet: stepnum 6, time 0.006 (stages 1)
9 TSTrajectorySet: stepnum 7, time 0.007 (stages 1)
10 TSTrajectorySet: stepnum 8, time 0.008 (stages 1)
11 TSTrajectorySet: stepnum 9, time 0.009 (stages 1)
[all …]
H A Dex20adj_3.out1 TSTrajectorySet: stepnum 0, time 0. (stages 0)
4 TSTrajectorySet: stepnum 1, time 0.001 (stages 0)
5 TSTrajectorySet: stepnum 2, time 0.002 (stages 0)
6 TSTrajectorySet: stepnum 3, time 0.003 (stages 0)
7 TSTrajectorySet: stepnum 4, time 0.004 (stages 0)
8 TSTrajectorySet: stepnum 5, time 0.005 (stages 0)
9 TSTrajectorySet: stepnum 6, time 0.006 (stages 0)
12 TSTrajectorySet: stepnum 7, time 0.007 (stages 0)
13 TSTrajectorySet: stepnum 8, time 0.008 (stages 0)
16 TSTrajectorySet: stepnum 9, time 0.009 (stages 0)
[all …]
H A Dex20adj_4.out1 TSTrajectorySet: stepnum 0, time 0. (stages 1)
2 TSTrajectorySet: stepnum 1, time 0.001 (stages 1)
5 TSTrajectorySet: stepnum 2, time 0.002 (stages 1)
6 TSTrajectorySet: stepnum 3, time 0.003 (stages 1)
7 TSTrajectorySet: stepnum 4, time 0.004 (stages 1)
8 TSTrajectorySet: stepnum 5, time 0.005 (stages 1)
9 TSTrajectorySet: stepnum 6, time 0.006 (stages 1)
10 TSTrajectorySet: stepnum 7, time 0.007 (stages 1)
13 TSTrajectorySet: stepnum 8, time 0.008 (stages 1)
14 TSTrajectorySet: stepnum 9, time 0.009 (stages 1)
[all …]
/petsc/src/ts/trajectory/impls/memory/
H A Dtrajmemory.c53 PetscInt stepnum; member
198 static PetscErrorCode ElementSet(TS ts, Stack *stack, StackElement *e, PetscInt stepnum, PetscReal … in ElementSet() argument
210 (*e)->stepnum = stepnum; in ElementSet()
213 if (stepnum == 0) { in ElementSet()
303 static PetscErrorCode WriteToDisk(PetscBool stifflyaccurate, PetscInt stepnum, PetscReal time, Pets… in WriteToDisk() argument
306 PetscCall(PetscViewerBinaryWrite(viewer, &stepnum, 1, PETSC_INT)); in WriteToDisk()
320 static PetscErrorCode ReadFromDisk(PetscBool stifflyaccurate, PetscInt *stepnum, PetscReal *time, P… in ReadFromDisk() argument
323 PetscCall(PetscViewerBinaryRead(viewer, stepnum, 1, NULL, PETSC_INT)); in ReadFromDisk()
363 …PetscCall(WriteToDisk(ts->stifflyaccurate, e->stepnum, e->time, e->timeprev, e->X, e->Y, stack->nu… in StackDumpAll()
401 …PetscCall(ReadFromDisk(ts->stifflyaccurate, &e->stepnum, &e->time, &e->timeprev, e->X, e->Y, stack… in StackLoadAll()
[all …]
/petsc/share/petsc/matlab/
H A DPetscReadBinaryTrajectory.m41 for stepnum=1:maxsteps
42 filename = sprintf('TS-%06d.bin',stepnum-1);
45 steps = stepnum-1;
52 steps = stepnum-1;
59 if (stepnum == 1)
63 x(:,stepnum) = v;
66 t(stepnum) = read(fd,1,precision);
/petsc/src/ts/trajectory/impls/basic/
H A Dtrajbasic.c11 static PetscErrorCode TSTrajectorySet_Basic(TSTrajectory tj, TS ts, PetscInt stepnum, PetscReal tim… in TSTrajectorySet_Basic() argument
18 PetscCall(PetscSNPrintf(filename, sizeof(filename), tj->dirfiletemplate, stepnum)); in TSTrajectorySet_Basic()
23 if (stepnum && !tj->solution_only) { in TSTrajectorySet_Basic()
41 if (stepnum) { in TSTrajectorySet_Basic()
57 static PetscErrorCode TSTrajectoryGet_Basic(TSTrajectory tj, TS ts, PetscInt stepnum, PetscReal *t) in TSTrajectoryGet_Basic() argument
65 PetscCall(PetscSNPrintf(filename, sizeof(filename), tj->dirfiletemplate, stepnum)); in TSTrajectoryGet_Basic()
71 if (stepnum && !tj->solution_only) { in TSTrajectoryGet_Basic()
90 if (stepnum) { in TSTrajectoryGet_Basic()
/petsc/src/ts/tutorials/power_grid/
H A Dex5.c59 PetscInt stepnum; /* Column number of solution matrix */ member
82 idx = 3 * user->stepnum; in SaveSolution()
89 user->stepnum++; in SaveSolution()
185 PetscInt stepnum; in IFunction() local
188 PetscCall(TSGetStepNumber(ts, &stepnum)); in IFunction()
195 f[0] = user->Tw * udot[0] - wd[stepnum] + u[0]; in IFunction()
253 user.stepnum = 0; in main()
276 idx = 3 * user.stepnum; in main()
286 user.stepnum++; in main()
301 PetscCall(MatCreateSeqDense(PETSC_COMM_SELF, 3, user.stepnum, NULL, &B)); in main()
[all …]
/petsc/src/ts/trajectory/interface/
H A Dtraj.c52 PetscErrorCode TSTrajectorySet(TSTrajectory tj, TS ts, PetscInt stepnum, PetscReal time, Vec X) in TSTrajectorySet() argument
58 PetscValidLogicalCollectiveInt(tj, stepnum, 3); in TSTrajectorySet()
62 …rySet: stepnum %" PetscInt_FMT ", time %g (stages %" PetscInt_FMT ")\n", stepnum, (double)time, (P… in TSTrajectorySet()
64 PetscUseTypeMethod(tj, set, ts, stepnum, time, X); in TSTrajectorySet()
66 if (tj->usehistory) PetscCall(TSHistoryUpdate(tj->tsh, stepnum, time)); in TSTrajectorySet()
115 PetscErrorCode TSTrajectoryGet(TSTrajectory tj, TS ts, PetscInt stepnum, PetscReal *time) in TSTrajectoryGet() argument
121 PetscValidLogicalCollectiveInt(tj, stepnum, 3); in TSTrajectoryGet()
124 …PetscCheck(stepnum >= 0, PetscObjectComm((PetscObject)tj), PETSC_ERR_PLIB, "Requesting negative st… in TSTrajectoryGet()
126 …TSTrajectoryGet: stepnum %" PetscInt_FMT ", stages %" PetscInt_FMT "\n", stepnum, (PetscInt)!tj->s… in TSTrajectoryGet()
130 PetscUseTypeMethod(tj, get, ts, stepnum, time); in TSTrajectoryGet()
[all …]
/petsc/src/ts/trajectory/impls/visualization/
H A Dtrajvisualization.c13 static PetscErrorCode TSTrajectorySet_Visualization(TSTrajectory tj, TS ts, PetscInt stepnum, Petsc… in TSTrajectorySet_Visualization() argument
22 if (stepnum == 0) { in TSTrajectorySet_Visualization()
35 …tscSNPrintf(filename, sizeof(filename), "Visualization-data/SA-%06" PetscInt_FMT ".bin", stepnum)); in TSTrajectorySet_Visualization()
49 …tscSNPrintf(filename, sizeof(filename), "Visualization-data/SA-%06" PetscInt_FMT ".bin", stepnum)); in TSTrajectorySet_Visualization()
/petsc/src/ts/trajectory/impls/singlefile/
H A Dsinglefile.c7 static PetscErrorCode TSTrajectorySet_Singlefile(TSTrajectory tj, TS ts, PetscInt stepnum, PetscRea… in TSTrajectorySet_Singlefile() argument
13 if (stepnum == 0) { in TSTrajectorySet_Singlefile()
/petsc/src/ts/event/
H A Dtsevent.c62 PetscCall(PetscFree((*event)->recorder.stepnum)); in TSEventDestroy()
377 PetscCall(PetscMalloc1(event->recsize, &event->recorder.stepnum)); in TSSetEventHandler()
400 PetscInt *stepnum, *nevents; in TSEventRecorderResize() local
407 PetscCall(PetscMalloc1(fact * event->recsize, &stepnum)); in TSEventRecorderResize()
414 PetscCall(PetscArraycpy(stepnum, event->recorder.stepnum, event->recsize)); in TSEventRecorderResize()
422 PetscCall(PetscFree(event->recorder.stepnum)); in TSEventRecorderResize()
427 event->recorder.stepnum = stepnum; in TSEventRecorderResize()
445 PetscInt ctr, stepnum; in TSPostEvent() local
491 PetscCall(TSGetStepNumber(ts, &stepnum)); in TSPostEvent()
495 event->recorder.stepnum[ctr] = stepnum; in TSPostEvent()
/petsc/src/ts/tutorials/power_grid/stability_9bus/
H A Dex9busoptfd.c88 PetscInt stepnum; member
798 static PetscErrorCode MonitorUpdateQ(TS ts, PetscInt stepnum, PetscReal time, Vec X, PetscCtx ctx0) in MonitorUpdateQ() argument
811 if (stepnum > 0) { in MonitorUpdateQ()
993 ctx->stepnum = 0; in FormFunction()
1053 ctx->stepnum++; in FormFunction()
1093 ctx->stepnum++; in FormFunction()
1121 ctx->stepnum++; in FormFunction()
H A Dex9bus.c122 PetscInt stepnum; member
328 idx = user->stepnum * (user->neqs_pgrid + 1); in SaveSolution()
335 user->stepnum++; in SaveSolution()
1159 user.stepnum = 0; in main()
1191 idx = user.stepnum * (user.neqs_pgrid + 1); in main()
1200 user.stepnum++; in main()
1261 PetscCall(MatCreateSeqDense(PETSC_COMM_SELF, user.neqs_pgrid + 1, user.stepnum, NULL, &A)); in main()
1264 PetscCall(PetscArraycpy(amat, rmat, user.stepnum * (user.neqs_pgrid + 1))); in main()
H A Dex9busopt.c98 PetscInt stepnum; member
142 idx = user->stepnum * (user->neqs_pgrid + 1); in SaveSolution()
149 user->stepnum++; in SaveSolution()
1245 ctx->stepnum = 0; in FormFunctionGradient()
1293 ctx->stepnum++; in FormFunctionGradient()
1339 ctx->stepnum++; in FormFunctionGradient()
1369 ctx->stepnum++; in FormFunctionGradient()
/petsc/src/ts/tutorials/
H A Dex11.c949 static PetscErrorCode MonitorVTK(TS ts, PetscInt stepnum, PetscReal time, Vec X, PetscCtx ctx) in MonitorVTK() argument
965 if (stepnum >= 0) stepnum += user->monitorStepOffset; in MonitorVTK()
966 if (stepnum >= 0) { /* No summary for final time */ in MonitorVTK()
1053 …mm((PetscObject)ts), "% 3" PetscInt_FMT " time %8.4g |x| %8.4g %s\n", stepnum, (double)time, (d… in MonitorVTK()
1057 if ((stepnum == -1) ^ (stepnum % user->vtkInterval == 0)) { in MonitorVTK()
1058 if (stepnum == -1) { /* Final time is not multiple of normal time interval, write it anyway */ in MonitorVTK()
1059 PetscCall(TSGetStepNumber(ts, &stepnum)); in MonitorVTK()
1061 …cSNPrintf(filename, sizeof filename, "%s-%03" PetscInt_FMT ".vtu", user->outputBasename, stepnum)); in MonitorVTK()
H A Dex30.c2042 static PetscErrorCode Monitor(TS ts, PetscInt stepnum, PetscReal time, Vec u, void *vctx) in Monitor() argument
2066 …ect)ts), "%4" PetscInt_FMT " TS: time %g, energy %g, intp %g, ell %g\n", stepnum, (double)time, (d… in Monitor()
2069 …Bool)(ctx->view_hdf5_ctx && ((ctx->view_hdf5_ctx->view_interval > 0 && !(stepnum % ctx->view_hdf5_… in Monitor()
2070 …need_vtk = (PetscBool)(ctx->view_vtk_ctx && ((ctx->view_vtk_ctx->interval > 0 && !(stepnum % ctx-… in Monitor()
2083 PetscCall(TSMonitorSolutionVTK(ts, stepnum, time, diagnostic, ctx->view_vtk_ctx)); in Monitor()
2177 PetscInt nits, lits, stepnum; in PostStage() local
2189 PetscCall(TSGetStepNumber(ts, &stepnum)); in PostStage()
2203 …_FMT " nonlinear its %" PetscInt_FMT ", linear its %" PetscInt_FMT "\n", stepnum, stageindex, nits… in PostStage()
H A Dex18.c848 static PetscErrorCode MonitorFunctionals(TS ts, PetscInt stepnum, PetscReal time, Vec X, PetscCtx c… in MonitorFunctionals() argument
882 if (stepnum >= 0) { /* No summary for final time */ in MonitorFunctionals()
997 …etscObjectComm((PetscObject)ts), "% 3" PetscInt_FMT " time %8.4g |x| (", stepnum, (double)time)); in MonitorFunctionals()
/petsc/src/ts/tutorials/hybrid/
H A Dex1fwd.c29 PetscErrorCode MyMonitor(TS ts, PetscInt stepnum, PetscReal time, Vec U, PetscCtx ctx) in MyMonitor() argument
/petsc/include/petsc/private/
H A Dtsimpl.h504 PetscInt *stepnum; /* Step numbers */ member