Home
last modified time | relevance | path

Searched full:monitor (Results 1 – 25 of 243) sorted by relevance

12345678910

/petsc/src/ts/event/tests/output/
H A Dex1.out2 Monitor -> step 0 time 0. value 0.
5 Monitor -> step 1 time 1. value 1.
8 Monitor -> step 1 time 1. value 1.
11 Monitor -> step 2 time 2. value 2.
14 Monitor -> step 3 time 3. value 3.
18 Monitor -> step 3 time 3. value 3.
21 Monitor -> step 3 time 3. value 3.
24 Monitor -> step 4 time 4. value 4.
28 Monitor -> step 5 time 5. value 5.
31 Monitor -> step 5 time 5. value 5.
[all …]
H A Dex1_arkimex.out2 Monitor -> step 0 time 0. value 0.
5 Monitor -> step 1 time 1. value 1.
8 Monitor -> step 1 time 1. value 1.
11 Monitor -> step 2 time 2. value 2.
14 Monitor -> step 3 time 3. value 3.
18 Monitor -> step 3 time 3. value 3.
21 Monitor -> step 3 time 3. value 3.
24 Monitor -> step 4 time 4. value 4.
28 Monitor -> step 5 time 5. value 5.
31 Monitor -> step 5 time 5. value 5.
[all …]
H A Dex1_alpha.out2 Monitor -> step 0 time 0. value 0.
5 Monitor -> step 1 time 1. value 1.
8 Monitor -> step 1 time 1. value 1.
11 Monitor -> step 2 time 2. value 2.
14 Monitor -> step 3 time 3. value 3.
18 Monitor -> step 3 time 3. value 3.
21 Monitor -> step 3 time 3. value 3.
24 Monitor -> step 4 time 4. value 4.
28 Monitor -> step 5 time 5. value 5.
31 Monitor -> step 5 time 5. value 5.
[all …]
H A Dex1_theta.out2 Monitor -> step 0 time 0. value 0.
5 Monitor -> step 1 time 1. value 1.
8 Monitor -> step 1 time 1. value 1.
11 Monitor -> step 2 time 2. value 2.
14 Monitor -> step 3 time 3. value 3.
18 Monitor -> step 3 time 3. value 3.
21 Monitor -> step 3 time 3. value 3.
24 Monitor -> step 4 time 4. value 4.
28 Monitor -> step 5 time 5. value 5.
31 Monitor -> step 5 time 5. value 5.
[all …]
H A Dex1_bdf.out2 Monitor -> step 0 time 0. value 0.
5 Monitor -> step 1 time 1. value 1.
8 Monitor -> step 1 time 1. value 1.
11 Monitor -> step 2 time 2. value 2.
14 Monitor -> step 3 time 3. value 3.
18 Monitor -> step 3 time 3. value 3.
21 Monitor -> step 3 time 3. value 3.
24 Monitor -> step 4 time 4. value 4.
28 Monitor -> step 5 time 5. value 5.
31 Monitor -> step 5 time 5. value 5.
[all …]
/petsc/src/dm/impls/network/
H A Dnetworkmonitor.c5 DMNetworkMonitorCreate - Creates a network monitor context
10 . network - network to monitor
21 DMNetworkMonitor monitor; in DMNetworkMonitorCreate() local
30 PetscCall(PetscMalloc1(1, &monitor)); in DMNetworkMonitorCreate()
31 monitor->comm = comm; in DMNetworkMonitorCreate()
32 monitor->network = network; in DMNetworkMonitorCreate()
33 monitor->firstnode = NULL; in DMNetworkMonitorCreate()
35 *monitorptr = monitor; in DMNetworkMonitorCreate()
40 DMNetworkMonitorDestroy - Destroys a network monitor and all associated viewers
45 . monitor - monitor to destroy
[all …]
/petsc/src/snes/linesearch/impls/secant/
H A Dlinesearchsecant.c17 PetscViewer monitor; in SNESLineSearchApply_Secant() local
31 PetscCall(SNESLineSearchGetDefaultMonitor(linesearch, &monitor)); in SNESLineSearchApply_Secant()
84 if (monitor) { in SNESLineSearchApply_Secant()
85 PetscCall(PetscViewerASCIIAddTab(monitor, ((PetscObject)linesearch)->tablevel)); in SNESLineSearchApply_Secant()
86 …PetscCall(PetscViewerASCIIPrintf(monitor, " Line search: objective function at lambda = %g is i… in SNESLineSearchApply_Secant()
87 PetscCall(PetscViewerASCIISubtractTab(monitor, ((PetscObject)linesearch)->tablevel)); in SNESLineSearchApply_Secant()
92 if (monitor) { in SNESLineSearchApply_Secant()
93 PetscCall(PetscViewerASCIIAddTab(monitor, ((PetscObject)linesearch)->tablevel)); in SNESLineSearchApply_Secant()
94 …PetscCall(PetscViewerASCIIPrintf(monitor, " Line search: objective function at lambda = %g <= l… in SNESLineSearchApply_Secant()
95 PetscCall(PetscViewerASCIISubtractTab(monitor, ((PetscObject)linesearch)->tablevel)); in SNESLineSearchApply_Secant()
[all …]
/petsc/src/snes/linesearch/impls/cp/
H A Dlinesearchcp.c13 PetscViewer monitor; in SNESLineSearchApply_CP() local
22 PetscCall(SNESLineSearchGetDefaultMonitor(linesearch, &monitor)); in SNESLineSearchApply_CP()
35 if (monitor) { in SNESLineSearchApply_CP()
36 PetscCall(PetscViewerASCIIAddTab(monitor, ((PetscObject)linesearch)->tablevel)); in SNESLineSearchApply_CP()
37 …PetscCall(PetscViewerASCIIPrintf(monitor, " Line search terminated at initial point because dot… in SNESLineSearchApply_CP()
38 PetscCall(PetscViewerASCIISubtractTab(monitor, ((PetscObject)linesearch)->tablevel)); in SNESLineSearchApply_CP()
61 if (monitor) { in SNESLineSearchApply_CP()
62 PetscCall(PetscViewerASCIIAddTab(monitor, ((PetscObject)linesearch)->tablevel)); in SNESLineSearchApply_CP()
63 …PetscCall(PetscViewerASCIIPrintf(monitor, " Line search: abs(dlambda) = %g < ltol = %g\n", (dou… in SNESLineSearchApply_CP()
64 PetscCall(PetscViewerASCIISubtractTab(monitor, ((PetscObject)linesearch)->tablevel)); in SNESLineSearchApply_CP()
[all …]
/petsc/src/ts/trajectory/utils/
H A Dreconstruct.c64 …if (tj->monitor) PetscCall(PetscViewerASCIIPrintf(tj->monitor, "Reconstructing at time %g, order %… in TSTrajectoryReconstruct_Private()
79 if (tj->monitor) PetscCall(PetscViewerASCIIPushTab(tj->monitor)); in TSTrajectoryReconstruct_Private()
86 …if (tj->monitor) PetscCall(PetscViewerASCIIPrintf(tj->monitor, "Reusing snapshot %" PetscInt_FMT "… in TSTrajectoryReconstruct_Private()
103 if (tj->monitor) { in TSTrajectoryReconstruct_Private()
105 …PetscCall(PetscViewerASCIIPrintf(tj->monitor, "Discarding snapshot %" PetscInt_FMT " at time %g\n"… in TSTrajectoryReconstruct_Private()
107 PetscCall(PetscViewerASCIIPrintf(tj->monitor, "New snapshot %" PetscInt_FMT "\n", tid)); in TSTrajectoryReconstruct_Private()
109 PetscCall(PetscViewerASCIIPushTab(tj->monitor)); in TSTrajectoryReconstruct_Private()
113 if (tj->monitor) PetscCall(PetscViewerASCIIPopTab(tj->monitor)); in TSTrajectoryReconstruct_Private()
120 if (tj->monitor) PetscCall(PetscViewerASCIIPopTab(tj->monitor)); in TSTrajectoryReconstruct_Private()
125 if (tj->monitor) { in TSTrajectoryReconstruct_Private()
[all …]
/petsc/src/snes/linesearch/impls/bisection/
H A Dlinesearchbisection.c12 PetscViewer monitor; in SNESLineSearchApply_Bisection() local
21 PetscCall(SNESLineSearchGetDefaultMonitor(linesearch, &monitor)); in SNESLineSearchApply_Bisection()
60 if (monitor) { in SNESLineSearchApply_Bisection()
61 PetscCall(PetscViewerASCIIAddTab(monitor, ((PetscObject)linesearch)->tablevel)); in SNESLineSearchApply_Bisection()
62 …PetscCall(PetscViewerASCIIPrintf(monitor, " Line search: sign of fty does not change in step … in SNESLineSearchApply_Bisection()
63 PetscCall(PetscViewerASCIISubtractTab(monitor, ((PetscObject)linesearch)->tablevel)); in SNESLineSearchApply_Bisection()
73 if (monitor) { in SNESLineSearchApply_Bisection()
74 PetscCall(PetscViewerASCIIAddTab(monitor, ((PetscObject)linesearch)->tablevel)); in SNESLineSearchApply_Bisection()
75 PetscCall(PetscViewerASCIIPrintf(monitor, " Line search fty is infinity or NaN!\n")); in SNESLineSearchApply_Bisection()
76 PetscCall(PetscViewerASCIISubtractTab(monitor, ((PetscObject)linesearch)->tablevel)); in SNESLineSearchApply_Bisection()
[all …]
/petsc/src/snes/linesearch/impls/nleqerr/
H A Dlinesearchnleqerr.c40 PetscViewer monitor; in SNESLineSearchApply_NLEQERR() local
53 PetscCall(SNESLineSearchGetDefaultMonitor(linesearch, &monitor)); in SNESLineSearchApply_NLEQERR()
73 if (monitor) { in SNESLineSearchApply_NLEQERR()
74 PetscCall(PetscViewerASCIIAddTab(monitor, ((PetscObject)linesearch)->tablevel)); in SNESLineSearchApply_NLEQERR()
75 … PetscCall(PetscViewerASCIIPrintf(monitor, " Line search: Initial direction and size is 0\n")); in SNESLineSearchApply_NLEQERR()
76 PetscCall(PetscViewerASCIISubtractTab(monitor, ((PetscObject)linesearch)->tablevel)); in SNESLineSearchApply_NLEQERR()
91 if (monitor) { in SNESLineSearchApply_NLEQERR()
92 PetscCall(PetscViewerASCIIAddTab(monitor, ((PetscObject)linesearch)->tablevel)); in SNESLineSearchApply_NLEQERR()
93 …PetscCall(PetscViewerASCIIPrintf(monitor, " Line search: norm of Newton step: %14.12e\n", (doub… in SNESLineSearchApply_NLEQERR()
94 PetscCall(PetscViewerASCIISubtractTab(monitor, ((PetscObject)linesearch)->tablevel)); in SNESLineSearchApply_NLEQERR()
[all …]
/petsc/src/snes/linesearch/impls/bt/
H A Dlinesearchbt.c68 PetscViewer monitor; in SNESLineSearchApply_BT() local
79 PetscCall(SNESLineSearchGetDefaultMonitor(linesearch, &monitor)); in SNESLineSearchApply_BT()
97 if (monitor) { in SNESLineSearchApply_BT()
98 PetscCall(PetscViewerASCIIAddTab(monitor, ((PetscObject)linesearch)->tablevel)); in SNESLineSearchApply_BT()
99 … PetscCall(PetscViewerASCIIPrintf(monitor, " Line search: Initial direction and size is 0\n")); in SNESLineSearchApply_BT()
100 PetscCall(PetscViewerASCIISubtractTab(monitor, ((PetscObject)linesearch)->tablevel)); in SNESLineSearchApply_BT()
155 if (monitor) { in SNESLineSearchApply_BT()
156 PetscCall(PetscViewerASCIIAddTab(monitor, ((PetscObject)linesearch)->tablevel)); in SNESLineSearchApply_BT()
157 …PetscCall(PetscViewerASCIIPrintf(monitor, " Line search: objective function at lambdas = %g is … in SNESLineSearchApply_BT()
158 PetscCall(PetscViewerASCIISubtractTab(monitor, ((PetscObject)linesearch)->tablevel)); in SNESLineSearchApply_BT()
[all …]
/petsc/src/sys/tests/
H A Dex47.c19 PetscBool monitor = PETSC_FALSE; in main() local
21 PetscCall(PetscOptionsGetBool(NULL, NULL, "-monitor", &monitor, NULL)); in main()
22 …if (monitor) PetscCall(PetscOptionsMonitorSet(PetscOptionsMonitorDefault, PETSC_VIEWER_STDOUT_WORL… in main()
29 PetscBool monitor = PETSC_FALSE; in main() local
31 PetscCall(PetscOptionsGetBool(NULL, NULL, "-monitor", &monitor, NULL)); in main()
32 if (monitor) PetscCall(PetscOptionsMonitorSet(PetscOptionsMonitorDefault, NULL, NULL)); in main()
93 args: -yaml ex47-merge.yaml -monitor
99 args: -monitor
103 args: -yamlstr "name: value" -monitor
/petsc/src/ts/interface/
H A Dtsmon.c8 TSMonitor - Runs all user-provided monitor routines set using `TSMonitorSet()`
24 …A step of -1 indicates that the monitor is being called on a solution obtained by interpolating fr…
41 for (i = 0; i < n; i++) PetscCall((*ts->monitor[i])(ts, step, ptime, u, ts->monitorcontext[i])); in TSMonitor()
47 …TSMonitorSetFromOptions - Sets a monitor function and viewer appropriate for the type indicated by…
52 + ts - `TS` object you wish to monitor
53 . name - the monitor type one is seeking
55 . manual - manual page for the monitor
56 . monitor - the monitor function, this must use a `PetscViewerFormat` as its context
57 - monitorsetup - a function that is called once ONLY if the user selected this monitor that may set…
69 …st char name[], const char help[], const char manual[], PetscErrorCode (*monitor)(TS, PetscInt, Pe… in TSMonitorSetFromOptions()
[all …]
/petsc/src/snes/interface/saws/
H A Dsnessaws.c9 SNESMonitorSAWsCreate - create an SAWs monitor context for `SNES`
14 . snes - `SNES` to monitor
17 . ctx - context for monitor
36 SNESMonitorSAWsDestroy - destroy a monitor context created with `SNESMonitorSAWsCreate()`
41 . ctx - monitor context
55 SNESMonitorSAWs - monitor solution process of `SNES` using SAWs
/petsc/src/ksp/ksp/interface/ftn-custom/
H A Dzitfuncf.c60 PetscFortranCallbackId monitor; member
68 …PetscObjectUseFortranCallback(ksp, _cb.monitor, (KSP *, PetscInt *, PetscReal *, void *, PetscErro… in ourmonitor()
92 PETSC_EXTERN void kspmonitorset_(KSP *ksp, void (*monitor)(KSP *, PetscInt *, PetscReal *, void *, … in kspmonitorset_()
96 if ((PetscFortranCallbackFn *)monitor == (PetscFortranCallbackFn *)kspmonitorresidual_) { in kspmonitorset_()
98 } else if ((PetscFortranCallbackFn *)monitor == (PetscFortranCallbackFn *)kspmonitorsolution_) { in kspmonitorset_()
100 …} else if ((PetscFortranCallbackFn *)monitor == (PetscFortranCallbackFn *)kspmonitortrueresidual_)… in kspmonitorset_()
102 …} else if ((PetscFortranCallbackFn *)monitor == (PetscFortranCallbackFn *)kspmonitorsingularvalue_… in kspmonitorset_()
104 …} else if ((PetscFortranCallbackFn *)monitor == (PetscFortranCallbackFn *)kspgmresmonitorkrylov_) { in kspmonitorset_()
107 …((PetscObject)*ksp, PETSC_FORTRAN_CALLBACK_CLASS, &_cb.monitor, (PetscFortranCallbackFn *)monitor,… in kspmonitorset_()
/petsc/src/snes/impls/ngmres/
H A Dngmresfunc.c172 …if (ngmres->monitor) PetscCall(PetscViewerASCIIPrintf(ngmres->monitor, "obj(X_A) = %e, ||F_A||_2 =… in SNESNGMRESSelect_Private()
208 if (ngmres->monitor) { in SNESNGMRESSelect_Private()
214 …PetscCall(PetscViewerASCIIPrintf(ngmres->monitor, "Additive solution: objective = %e\n", (double)o… in SNESNGMRESSelect_Private()
224 …if (ngmres->monitor) PetscCall(PetscViewerASCIIPrintf(ngmres->monitor, "picked X_A, obj(X_A) = %e,… in SNESNGMRESSelect_Private()
232 …if (ngmres->monitor) PetscCall(PetscViewerASCIIPrintf(ngmres->monitor, "picked X_M, obj(X_A) = %e,… in SNESNGMRESSelect_Private()
258 …if (ngmres->monitor) PetscCall(PetscViewerASCIIPrintf(ngmres->monitor, "ascent restart: %e > 0\n",… in SNESNGMRESSelectRestart_Private()
264 …if (ngmres->monitor) PetscCall(PetscViewerASCIIPrintf(ngmres->monitor, "difference restart: %e > %… in SNESNGMRESSelectRestart_Private()
269 …if (ngmres->monitor) PetscCall(PetscViewerASCIIPrintf(ngmres->monitor, "residual restart: %e > %e\… in SNESNGMRESSelectRestart_Private()
275 …if (ngmres->monitor) PetscCall(PetscViewerASCIIPrintf(ngmres->monitor, "F_M rise restart: %e > %e\… in SNESNGMRESSelectRestart_Private()
H A Danderson.c6 PetscBool monitor = PETSC_FALSE; in SNESSetFromOptions_Anderson() local
15 …l("-snes_anderson_monitor", "Monitor steps of Anderson Mixing", "SNES", ngmres->monitor ? PETSC_TR… in SNESSetFromOptions_Anderson()
16 if (monitor) ngmres->monitor = PETSC_VIEWER_STDOUT_(PetscObjectComm((PetscObject)snes)); in SNESSetFromOptions_Anderson()
130 …if (ngmres->monitor) PetscCall(PetscViewerASCIIPrintf(ngmres->monitor, "periodic restart after %" … in SNESSolve_Anderson()
138 …if (ngmres->monitor) PetscCall(PetscViewerASCIIPrintf(ngmres->monitor, "Restarted at iteration %" … in SNESSolve_Anderson()
/petsc/src/ksp/ksp/interface/saws/
H A Dkspsaws.c12 KSPMonitorSAWsCreate - create an SAWs monitor context for `KSP`
17 . ksp - `KSP` to monitor
20 . ctx - context for monitor
39 KSPMonitorSAWsDestroy - destroy a monitor context created with `KSPMonitorSAWsCreate()`
44 . ctx - monitor context
61 KSPMonitorSAWs - monitor `KSP` solution using SAWs
/petsc/src/binding/petsc4py/test/
H A Dtest_ksp.py144 def monitor(ksp, its, rnorm): function
149 refcnt = getrefcount(monitor)
150 self.ksp.setMonitor(monitor)
151 self.assertEqual(getrefcount(monitor), refcnt + 1)
155 self.assertEqual(getrefcount(monitor), refcnt)
158 ## Monitor = PETSc.KSP.Monitor
159 ## self.ksp.setMonitor(Monitor())
160 ## self.ksp.setMonitor(Monitor.DEFAULT)
161 ## self.ksp.setMonitor(Monitor.TRUE_RESIDUAL_NORM)
162 ## self.ksp.setMonitor(Monitor.SOLUTION)
H A Dtest_ts.py57 def monitor(self, ts, s, t, u): member in MyODE
101 ts.setMonitor(ode.monitor)
129 ts.monitor(ts.step_number, ts.time)
133 ts.monitor(ts.step_number, ts.time)
148 ts.setMonitor(ode.monitor)
195 ts.setMonitor(ode.monitor)
219 ts.monitor(ts.step_number, ts.time)
223 ts.monitor(ts.step_number, ts.time)
239 ts.setMonitor(ode.monitor)
/petsc/src/sys/classes/viewer/interface/
H A Dviewers.c103 + nmon - The new monitor
104 . nmctx - The new monitor context, or `NULL`
105 . nmdestroy - The new monitor context destroy function, or `NULL`, see `PetscCtxDestroyFn` for its …
106 . mon - The old monitor
107 . mctx - The old monitor context, or `NULL`
108 - mdestroy - The old monitor context destroy function, or `NULL`, see `PetscCtxDestroyFn` for its …
/petsc/src/ksp/pc/impls/svd/
H A Dsvd.c15 PetscViewer monitor; member
104 if (jac->monitor) { in PCSetUp_SVD()
105 PetscCall(PetscViewerASCIIAddTab(jac->monitor, ((PetscObject)pc)->tablevel)); in PCSetUp_SVD()
106 …PetscCall(PetscViewerASCIIPrintf(jac->monitor, " SVD: condition number %14.12e, %" PetscInt_FMT… in PCSetUp_SVD()
108 PetscCall(PetscViewerASCIIPrintf(jac->monitor, " SVD: singular values:\n")); in PCSetUp_SVD()
111 if (i != 0) PetscCall(PetscViewerASCIIPrintf(jac->monitor, "\n")); in PCSetUp_SVD()
112 PetscCall(PetscViewerASCIIPrintf(jac->monitor, " ")); in PCSetUp_SVD()
114 PetscCall(PetscViewerASCIIPrintf(jac->monitor, " %14.12e", (double)PetscRealPart(d[i]))); in PCSetUp_SVD()
116 PetscCall(PetscViewerASCIIPrintf(jac->monitor, "\n")); in PCSetUp_SVD()
118 …PetscCall(PetscViewerASCIIPrintf(jac->monitor, " SVD: smallest singular values: %14.12e %14.12e… in PCSetUp_SVD()
[all …]
/petsc/src/ts/trajectory/impls/memory/
H A Dtrajmemory.c348 if (tj->monitor) { in StackDumpAll()
349 PetscCall(PetscViewerASCIIPushTab(tj->monitor)); in StackDumpAll()
350 PetscCall(PetscViewerASCIIPrintf(tj->monitor, "Dump stack id %" PetscInt_FMT " to file\n", id)); in StackDumpAll()
351 PetscCall(PetscViewerASCIIPopTab(tj->monitor)); in StackDumpAll()
386 if (tj->monitor) { in StackLoadAll()
387 PetscCall(PetscViewerASCIIAddTab(tj->monitor, ((PetscObject)tj)->tablevel)); in StackLoadAll()
388 PetscCall(PetscViewerASCIIPrintf(tj->monitor, "Load stack from file\n")); in StackLoadAll()
389 PetscCall(PetscViewerASCIISubtractTab(tj->monitor, ((PetscObject)tj)->tablevel)); in StackLoadAll()
430 if (tj->monitor) { in StackLoadLast()
431 PetscCall(PetscViewerASCIIAddTab(tj->monitor, ((PetscObject)tj)->tablevel)); in StackLoadLast()
[all …]
/petsc/src/ts/trajectory/interface/
H A Dtraj.c62 …if (tj->monitor) PetscCall(PetscViewerASCIIPrintf(tj->monitor, "TSTrajectorySet: stepnum %" PetscI… in TSTrajectorySet()
125 if (tj->monitor) { in TSTrajectoryGet()
126 …PetscCall(PetscViewerASCIIPrintf(tj->monitor, "TSTrajectoryGet: stepnum %" PetscInt_FMT ", stages … in TSTrajectoryGet()
127 PetscCall(PetscViewerFlush(tj->monitor)); in TSTrajectoryGet()
171 if (tj->monitor) { in TSTrajectoryGetVecs()
175 …PetscCall(PetscViewerASCIIPrintf(tj->monitor, "Requested by GetVecs %" PetscInt_FMT " %" PetscInt_… in TSTrajectoryGetVecs()
176 PetscCall(PetscViewerFlush(tj->monitor)); in TSTrajectoryGetVecs()
189 if (tj->monitor && !U) { in TSTrajectoryGetVecs()
190 PetscCall(PetscViewerASCIIPushTab(tj->monitor)); in TSTrajectoryGetVecs()
191 PetscCall(PetscViewerASCIIPrintf(tj->monitor, "State vector cached\n")); in TSTrajectoryGetVecs()
[all …]

12345678910