Searched refs:crtime (Results 1 – 5 of 5) sorted by relevance
| /petsc/src/ts/tutorials/ |
| H A D | ex6.c | 345 PetscErrorCode Monitor(TS ts, PetscInt step, PetscReal crtime, Vec u, PetscCtx ctx) in Monitor() argument 360 PetscCall(ExactSolution(crtime, appctx->solution, appctx)); in Monitor() 381 …%g, 2-norm error = %g, max norm error = %g\n", step, (double)dt, (double)crtime, (double)norm_2, (… in Monitor()
|
| H A D | ex47.c | 256 static PetscErrorCode MyTSMonitorError(TS ts, PetscInt step, PetscReal crtime, Vec u, PetscCtx ctx) in MyTSMonitorError() argument 268 PetscCall(DMComputeL2Diff(dm, crtime, func, ctxs, u, &error)); in MyTSMonitorError() 269 …, "Timestep: %04d time = %-8.4g \t L_2 Error: %2.5g\n", (int)step, (double)crtime, (double)error)); in MyTSMonitorError()
|
| H A D | ex46.c | 296 static PetscErrorCode MonitorError(TS ts, PetscInt step, PetscReal crtime, Vec u, PetscCtx ctx) in MonitorError() argument 309 PetscCall(DMComputeL2FieldDiff(dm, crtime, funcs, ctxs, u, ferrors)); in MonitorError() 310 …: %04d time = %-8.4g \t L_2 Error: [%2.3g, %2.3g]\n", (int)step, (double)crtime, (double)ferrors[0… in MonitorError()
|
| H A D | ex77.c | 726 static PetscErrorCode MonitorError(TS ts, PetscInt step, PetscReal crtime, Vec u, PetscCtx ctx) in MonitorError() argument 741 PetscCall(DMComputeL2FieldDiff(dm, crtime, exactFuncs, ctxs, u, ferrors)); in MonitorError() 744 …time = %-8.4g \t L_2 Error: [%2.3g, %2.3g, %2.3g]\n", (int)step, (double)crtime, (double)ferrors[0… in MonitorError()
|
| H A D | ex76.c | 1579 static PetscErrorCode MonitorError(TS ts, PetscInt step, PetscReal crtime, Vec u, PetscCtx ctx) in MonitorError() argument 1595 PetscCall(DMComputeL2FieldDiff(dm, crtime, exactFuncs, ctxs, u, ferrors)); in MonitorError() 1598 PetscCall(DMProjectField(dmCell, crtime, u, diagnostics, INSERT_VALUES, divu)); in MonitorError() 1601 …L_2 Error: [%2.3g, %2.3g, %2.3g] ||div u||: %2.3g\n", (int)step, (double)crtime, (double)ferrors[0… in MonitorError() 1606 PetscCall(DMProjectFunction(dm, crtime, exactFuncs, ctxs, INSERT_ALL_VALUES, v)); in MonitorError()
|