| /petsc/src/ts/tutorials/output/ |
| H A D | ex20adj_6.out | 1 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 D | ex20adj_4.out | 1 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) 11 Store in checkpoint number 1 (located in RAM) 13 TSTrajectorySet: stepnum 8, time 0.008 (stages 1) [all …]
|
| H A D | ex30_0_dirk.out | 1 ---------------------------- 10 snum : 1 12 scals: (500.,0.,0.,1.) 13 ---------------------------- 14 ---------- Testing Jacobian ------------- 15 …Run with -snes_test_jacobian_view and optionally -snes_test_jacobian <threshold> to show difference 16 of hand-coded and finite difference Jacobian entries greater than <threshold>. 17 Testing hand-coded Jacobian, if (for double precision runs) ||J - Jfd||_F/||J||_F is 18 O(1.e-8), the hand-coded Jacobian is probably correct. 19 ||J - Jfd||_F/||J||_F = 7.63695e-14, ||J - Jfd||_F = 7.42506e-13 [all …]
|
| /petsc/lib/petsc/bin/ |
| H A D | petsclogformat.py | 246 return Sorted.index(a) - Sorted.index(b) 249 …Prints a simple table that displays the percent of time, flops, etc for each event in each stage''' 255 if len(localTimes) > 1: 257 print(" & & \multicolumn{4}{c}{--------------- Percent of -------------} & \\\\") 261 if len(localTimes) > 1: 262 print(" --------- Percent of ------") 271 if not numMessages: numMessages = 1 272 if not numReductions: numReductions = 1 274 for stage in sumStages: 275 if len(sumStages) > 1: [all …]
|
| /petsc/src/sys/logging/state/ |
| H A D | logstate.c | 4 PetscLogStateCreate - Create a logging state. 9 . state - a `PetscLogState` 27 PetscCall(PetscLogRegistryCreate(&s->registry)); in PetscLogStateCreate() 28 PetscCall(PetscIntStackCreate(&s->stage_stack)); in PetscLogStateCreate() 29 PetscCall(PetscLogRegistryGetNumEvents(s->registry, NULL, &max_events)); in PetscLogStateCreate() 30 PetscCall(PetscLogRegistryGetNumStages(s->registry, NULL, &max_stages)); in PetscLogStateCreate() 32 …PetscCall(PetscCIntCast(max_events + 1, &s->bt_num_events)); // one extra column for default stage… in PetscLogStateCreate() 33 PetscCall(PetscCIntCast(max_stages, &s->bt_num_stages)); in PetscLogStateCreate() 34 num_entries = s->bt_num_events * s->bt_num_stages; in PetscLogStateCreate() 35 PetscCall(PetscBTCreate(num_entries, &s->active)); in PetscLogStateCreate() [all …]
|
| /petsc/src/binding/petsc4py/test/ |
| H A D | test_log.py | 1 # -------------------------------------------------------------------- 7 petsc4py.init(sys.argv + ['-log_view']) 9 # -------------------------------------------------------------------- 14 # -------------------------------------------------------------------- 21 self.stage1 = PETSc.Log.Stage('Stage 1') 22 self.stage2 = PETSc.Log.Stage('Stage 2') 27 self.event1 = PETSc.Log.Event('Event 1') # no class 35 self.assertEqual(self.event1.name, 'Event 1') 39 self.assertEqual(self.stage1.name, 'Stage 1') 40 self.assertEqual(self.stage2.name, 'Stage 2') [all …]
|
| /petsc/ |
| H A D | .gitlab-ci.yml | 2 # stage-1 take only a few minutes; they do not run the full test suite or external packages. 4 # stage-2 runs on MCS systems and may take 10 to 15 minutes. They run the full test suite but with … 6 # stage-3 runs on MCS systems and may take an hour or more. They run the full test suite and heavil… 8 # The stage-(n) tests are only started if all of the stage-(n-1) tests run without error 9 # You can limit the testing by using the variable STAGE with value 1 or 2 13 - stage-1 14 - stage-2 15 - stage-3 16 - stage-4 19 GIT_CLEAN_FLAGS: -ffdxq [all …]
|
| /petsc/src/sys/tests/output/ |
| H A D | ex72_0.out | 1 [0] <loghandler:nested> PetscLogHandlerNestedEventEnd(): Log event Event-2 wasn't ended, ending it … 2 [0] <loghandler:nested> PetscLogHandlerNestedEventEnd(): Log event Event-1 wasn't ended, ending it … 3 [0] <loghandler:nested> PetscLogHandlerNestedEventEnd(): Log event Event-2 wasn't ended, ending it … 4 Main Stage time_removed 5 Main Stage;User Stage time_removed 6 Main Stage;User Stage;Event-1 time_removed 7 Main Stage;User Stage;Event-1;Event-2 time_removed 8 Main Stage;Event-1 time_removed 9 Main Stage;Event-1;Event-2 time_removed
|
| /petsc/src/sys/tutorials/output/ |
| H A D | ex7_0.out | 2 [0:time_removed:PetscLogHandlerStagePush_Ex7 ] Pushing initial stage "Main Stage" 3 [0:time_removed:PetscLogHandlerEventBegin_Ex7 ] Event "Event 1" started: now running 1 times 4 …me_removed:PetscLogHandlerStagePush_Ex7 ] Pushing stage stage "Stage 1" (replacing "Main Stage… 5 [0:time_removed:PetscLogHandlerEventBegin_Ex7 ] Event "Event 2" started: now running 1 times 6 [0:time_removed:PetscLogHandlerEventSync_Ex7 ] Event "Event 1" synced: took 6.13e-07 seconds 7 [0:time_removed:PetscLogHandlerEventBegin_Ex7 ] Event "Event 1" started: now running 2 times 9 [0:time_removed:PetscLogHandlerEventEnd_Ex7 ] Event "Event 1" stopped: now running 1 times 11 [0:time_removed:PetscLogHandlerStagePop_Ex7 ] Popping stage "Stage 1" (back to "Main Stage") 12 [0:time_removed:PetscLogHandlerEventEnd_Ex7 ] Event "Event 1" stopped: now running 0 times 13 [0:time_removed:PetscLogHandlerStagePop_Ex7 ] Popping initial stage "Main Stage" [all …]
|
| /petsc/src/sys/logging/handler/interface/ |
| H A D | loghandler.c | 7 PetscLogHandlerCreate - Create a log handler for profiling events and stages. PETSc 14 . comm - the communicator for synchronizing and viewing events with this handler 17 . handler - the `PetscLogHandler` 43 PetscLogHandlerDestroy - Destroy a `PetscLogHandler` 48 . handler - handler to be destroyed 62 PetscValidHeaderSpecific(h, PETSCLOGHANDLER_CLASSID, 1); in PetscLogHandlerDestroy() 63 if (--((PetscObject)h)->refct > 0) PetscFunctionReturn(PETSC_SUCCESS); in PetscLogHandlerDestroy() 65 PetscCall(PetscLogStateDestroy(&h->state)); in PetscLogHandlerDestroy() 73 …PetscLogHandlerSetState - Set the logging state that provides the stream of events and stages for … 78 + h - the `PetscLogHandler` [all …]
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | Log.pyx | 1 # -------------------------------------------------------------------- 6 # -------------------------------------------------------------------- 12 def Stage(cls, name: str) -> LogStage: member in Log 13 """Create a log stage. 18 ---------- 20 Stage name. 23 ------- 24 stage : LogStage 25 The log stage. If a stage already exists with name ``name`` then 29 -------- [all …]
|
| /petsc/src/sys/logging/handler/impls/default/ |
| H A D | logdefault.c | 14 eventInfo->visible = PETSC_TRUE; in PetscEventPerfInfoInit() 15 eventInfo->id = -1; in PetscEventPerfInfoInit() 16 eventInfo->dof[0] = -1.0; in PetscEventPerfInfoInit() 17 eventInfo->dof[1] = -1.0; in PetscEventPerfInfoInit() 18 eventInfo->dof[2] = -1.0; in PetscEventPerfInfoInit() 19 eventInfo->dof[3] = -1.0; in PetscEventPerfInfoInit() 20 eventInfo->dof[4] = -1.0; in PetscEventPerfInfoInit() 21 eventInfo->dof[5] = -1.0; in PetscEventPerfInfoInit() 22 eventInfo->dof[6] = -1.0; in PetscEventPerfInfoInit() 23 eventInfo->dof[7] = -1.0; in PetscEventPerfInfoInit() [all …]
|
| /petsc/src/sys/tests/ |
| H A D | ex68.c | 26 …PetscCall(PetscOptionsBool("-main_visible", "The logging visibility of the main stage", NULL, main… in main() 27 …PetscCall(PetscOptionsBool("-unrelated_visible", "The logging visibility of the unrelated stage", … in main() 33 - Pausing events should send the log data for the runtime initialization in main() 34 to the Main Stage in main() 36 - Turning the Main Stage invisible should hide it from -log_view in main() 38 So the runtime initialization should be more or less missing from -log_view. */ in main() 50 PetscCall(PetscLogStageRegister("Unrelated stage 1", &unrelated_stage_1)); in main() 51 PetscCall(PetscLogStageRegister("Unrelated stage 2", &unrelated_stage_2)); in main() 52 PetscCall(PetscLogStageGetId("Main Stage", &main_stage)); in main() 61 …PetscCheck(main_visible == get_main_visible, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Get/Set stage visib… in main() [all …]
|
| /petsc/src/sys/logging/ |
| H A D | plog.c | 22 PetscInt petsc_log_gid = -1; /* Global threadId counter */ 23 PETSC_TLS PetscInt petsc_log_tid = -1; /* Local threadId */ 139 *cnt_th = *cnt_th + 1; in PetscAddLogDoubleCnt() 143 *cnt += *cnt + 1; in PetscAddLogDoubleCnt() 171 PetscLogGetDefaultHandler - Get the default log handler if it is running. 176 . handler - the default `PetscLogHandler`, or `NULL` if it is not running. 182 if the options flags `-log_all` or `-log_view` is given without arguments, 183 or for `-log_view :output:format` if `format` is not `ascii_xml` or `ascii_flamegraph`. 204 PetscLogGetState - Get the `PetscLogState` for PETSc's global logging, used 212 . state - The `PetscLogState` changed by registrations (such as [all …]
|
| /petsc/src/dm/partitioner/impls/multistage/ |
| H A D | mspart.c | 10 …" title = {High-order accurate entropy-stable discontinuous collocated Galerkin methods with th… 24 PetscInt stage; member 26 /* Stage partitioners */ 54 PetscPartitioner_MS *p = (PetscPartitioner_MS *)part->data; in PetscPartitionerView_Multistage() 66 …if (!p->stagedm || p->stage == 0) PetscCall(PetscViewerASCIIPrintf(viewer, "Multistage graph parti… in PetscPartitionerView_Multistage() 69 for (PetscInt l = 0; l < p->levels; l++) { in PetscPartitionerView_Multistage() 70 PetscPartitioner ppart = p->ppart[l]; in PetscPartitionerView_Multistage() 78 pgroup = p->lgroup[0]; in PetscPartitionerView_Multistage() 83 PetscMPIInt gr, gem = 1; in PetscPartitionerView_Multistage() 89 PetscCallMPI(MPI_Group_translate_ranks(pgroup, 1, &gem, group, &gr)); in PetscPartitionerView_Multistage() [all …]
|
| /petsc/src/ksp/ksp/tutorials/output/ |
| H A D | ex39_1.out | 1 Initialization stage 4 Initialization stage: creating level 2 7 After 1 iterations residual norm is 0.056338 8 After 1 iterations Rayleigh quotient of residual is 0.040647 11 General setup stage 17 General setup stage 23 General setup stage 26 1 KSP Residual norm 0.195913 29 4 KSP Residual norm 1.43311e-05
|
| H A D | ex40_1.out | 2 Initialization stage 5 Initialization stage: creating level 2 8 After 1 iterations residual norm is 0.018022 9 After 1 iterations Rayleigh quotient of residual is 0.041788 12 General setup stage 18 General setup stage 24 General setup stage 27 1 KSP Residual norm 0.30398 32 6 KSP Residual norm 4.85307e-06
|
| H A D | ex38_1.out | 1 Initialization stage 4 Initialization stage: creating level 2 7 After 1 iterations residual norm is 0.001562 8 After 1 iterations Rayleigh quotient of residual is 0.013884 15 General setup stage 19 1 KSP Residual norm < 1.e-11
|
| /petsc/src/ts/impls/implicit/glle/ |
| H A D | glle.h | 13 PetscInt q; /* stage-order of the method */ 20 PetscScalar *alpha; /* X_n(t_n) - X_{n-1}(t_n) = - alpha^T h^{p+1} x^{(p+1)}(t_n) */ 21 PetscScalar *beta; /* - beta^T h^{p+2} x^{(p+2)}(t_n) */ 22 PetscScalar *gamma; /* - gamma^T h^{p+2} f' x^{(p+1)}(t_n) + O(h^{p+3}) */ 25 /* h^{p+1}x^{(p+1)}(t_n) ~= phi[0]*h*Ydot + psi[0]*X[1:] */ 26 /* h^{p+2}x^{(p+2)}(t_n) ~= phi[1]*h*Ydot + psi[1]*X[1:] */ 27 /* h^{p+2}f' x^{(p+1)}(t_n) ~= phi[2]*h*Ydot + psi[2]*X[1:] */ 29 PetscScalar *psi; /* dim=[3][r-1], [0 psi^T] of B,J,W 2007 */ 34 PetscBool fsal; /* First Same As Last: X[1] = h*Ydot[s-1] (and stiffly accurate) */ 41 …re only stored so that they can be printed in TSView_GLLE() without making these schemes full-blown [all …]
|
| /petsc/src/sys/logging/handler/impls/perfstubs/ |
| H A D | logperfstubs.c | 27 PetscCall(PetscLogPSArrayCreate(128, &ps->events)); in PetscLogHandlerContextCreate_Perfstubs() 28 PetscCall(PetscLogPSArrayCreate(8, &ps->stages)); in PetscLogHandlerContextCreate_Perfstubs() 35 PetscLogHandler_Perfstubs ps = (PetscLogHandler_Perfstubs)h->data; in PetscLogHandlerDestroy_Perfstubs() 38 PetscCall(PetscLogPSArrayGetSize(ps->events, &num_events, NULL)); in PetscLogHandlerDestroy_Perfstubs() 42 PetscCall(PetscLogPSArrayGet(ps->events, i, &event)); in PetscLogHandlerDestroy_Perfstubs() 45 PetscCall(PetscLogPSArrayDestroy(&ps->events)); in PetscLogHandlerDestroy_Perfstubs() 47 PetscCall(PetscLogPSArrayGetSize(ps->stages, &num_stages, NULL)); in PetscLogHandlerDestroy_Perfstubs() 49 PetscEventPS stage = {NULL, 0}; in PetscLogHandlerDestroy_Perfstubs() local 51 PetscCall(PetscLogPSArrayGet(ps->stages, i, &stage)); in PetscLogHandlerDestroy_Perfstubs() 52 PetscStackCallExternalVoid("ps_timer_destroy_", ps_timer_destroy_(stage.timer)); in PetscLogHandlerDestroy_Perfstubs() [all …]
|
| /petsc/src/benchmarks/ |
| H A D | benchmarkExample.py | 61 …pipe = Popen(command, cwd=cwd, stdin=None, stdout=PIPE, stderr=PIPE, bufsize=-1, shell=True, unive… 71 a.append('-'+key) 73 a.append('-'+key+' '+str(value)) 98 def run(self, numProcs = 1, log = True, **opts): 103 cmd += ' -n ' + str(numProcs) + ' ' 105 cmd += ' -hostfile hostfile ' 112 out, err, ret = self.runShellCommand('qsub -q gpu '+filename, log = log) 131 stageName = row["Stage Name"] 159 stageName, name = name.split(':', 1) 162 stage = m.Stages[stageName] [all …]
|
| /petsc/src/ts/impls/explicit/rk/ |
| H A D | rk.h | 10 PetscReal *bembed; /* Embedded formula of order one less (order-1) */ 25 …Vec *YdotRHS; /* Function evaluations for the non-stiff part and contains all compone… 26 …Vec *YdotRHS_fast; /* Function evaluations for the non-stiff part and contains fast compon… 27 …Vec *YdotRHS_slow; /* Function evaluations for the non-stiff part and contains slow compon… 28 …Vec *VecsDeltaLam; /* Increment of the adjoint sensitivity w.r.t IC at stage … 30 …Vec VecDeltaMu; /* Increment of the adjoint sensitivity w.r.t P at stage … 31 Vec *VecsDeltaLam2; /* Increment of the 2nd-order adjoint sensitivity w.r.t IC at stage */ 32 Vec VecDeltaMu2; /* Increment of the 2nd-order adjoint sensitivity w.r.t P at stage */ 35 …PetscInt slow; /* flag indicates call slow components solver (0) or fast components solver (1)…
|
| /petsc/src/snes/impls/ms/ |
| H A D | ms.c | 15 PetscReal *betasub; /* Subdiagonal of beta in Shu-Osher form */ 26 SNESMSTableau tableau; /* Tableau in low-storage form */ 31 SNESMSRegisterAll - Registers all of the multi-stage methods in `SNESMS` 46 PetscReal alpha[1] = {1.0}; in SNESMSRegisterAll() 47 PetscCall(SNESMSRegister(SNESMSEULER, 1, 1, 1.0, NULL, NULL, alpha)); in SNESMSRegisterAll() 52 …0000000000E+00, -7.0304722367110606E-01, -1.9836719667506464E-01, -1.6023843981863788E+00, 9.44838… in SNESMSRegisterAll() 53 …025767083920E+00, 5.6150921583923230E-01, 7.4151723494934041E-01, 3.1714538168600587E-01, 4.64… in SNESMSRegisterAll() 54 …+00, 0.0000000000000000E+00, 6.7968174970583317E-01, -4.1755042846051737E-03, -1.91156681299238… in SNESMSRegisterAll() 56 …000000000000000E+00, 5.3275427433201750E-01, 6.0143544663985238E-01, 4.5874077053842177E-01, 2.754… in SNESMSRegisterAll() 57 …753115429481929E-01, 7.4018896368655618E-01, 6.5963574086583309E-03, 4.6747795645517759E-01, 1.331… in SNESMSRegisterAll() [all …]
|
| /petsc/src/sys/logging/handler/impls/nested/ |
| H A D | lognested.c | 7 PetscLogHandler_Nested nested = (PetscLogHandler_Nested)h->data; in PetscLogHandlerNestedSetThreshold() 10 if (oldThresh) *oldThresh = nested->threshold; in PetscLogHandlerNestedSetThreshold() 13 nested->threshold = PetscMax(newThresh, 0.0); in PetscLogHandlerNestedSetThreshold() 19 PetscLogHandler_Nested nested = (PetscLogHandler_Nested)h->data; in PetscLogEventGetNestedEvent() 27 PetscCall(PetscIntStackTop(nested->nested_stack, &key.root)); in PetscLogEventGetNestedEvent() 29 PetscCall(PetscNestedHashPut(nested->pair_map, key, &iter, &missing)); in PetscLogEventGetNestedEvent() 37 PetscCall(PetscLogStateEventGetInfo(nested->state, key.root, &nested_event_info)); in PetscLogEventGetNestedEvent() 38 …PetscCall(PetscSNPrintf(name, sizeof(name) - 1, "%s;%s", nested_event_info.name, event_info.name)); in PetscLogEventGetNestedEvent() 39 PetscCall(PetscLogStateEventRegister(nested->state, name, event_info.classid, nested_event)); in PetscLogEventGetNestedEvent() 40 PetscCall(PetscLogStateEventSetCollective(nested->state, *nested_event, event_info.collective)); in PetscLogEventGetNestedEvent() [all …]
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex9.c | 30 options->dim = 2; in ProcessOptions() 31 options->cellSimplex = PETSC_TRUE; in ProcessOptions() 32 options->spectral = PETSC_FALSE; in ProcessOptions() 33 options->interpolate = PETSC_FALSE; in ProcessOptions() 34 options->refinementLimit = 0.0; in ProcessOptions() 35 options->numFields = 0; in ProcessOptions() 36 options->numComponents = NULL; in ProcessOptions() 37 options->numDof = NULL; in ProcessOptions() 38 options->reuseArray = PETSC_FALSE; in ProcessOptions() 39 options->errors = PETSC_FALSE; in ProcessOptions() [all …]
|