Skip to content

Commit 758cd97

Browse files
committed
fix: count wave synthesis and mixed-step checks in their phases
The second review found two phase boundaries that misplaced work. The deck's wave synthesis or stream-function solve ran before the profile left the input phase, so it was reported as input parsing; it now counts as initialisation, while the bathymetry file read stays input. On the mixed EI = 0 + finite-EI route the step went straight to the output phase, so its status and convergence checks were charged to the outputs; it now enters the check phase and moves to the output phase once the checks pass, as the deck-driver marches do. Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
1 parent 3e443f9 commit 758cd97

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

‎app/cabledyn.f90‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ SUBROUTINE run_mixed_held_deck(deck, root, dt, has_dt, run_time, has_run_time, h
580580
time = REAL(step, wp)*step_dt
581581
CALL CD_AGG_Step_Moving(aggregate, step_dt, position, velocity, acceleration, step_converged, stalled, &
582582
n_iter, es, em, t_committed=time)
583-
CALL CD_Profile_Enter(CD_PROF_OUTPUT)
583+
CALL CD_Profile_Enter(CD_PROF_CHECK)
584584
IF (es /= CD_AGG_OK) THEN
585585
CALL set_aggregate_error(es, em, run_stat, run_msg)
586586
EXIT mixed_run
@@ -598,6 +598,7 @@ SUBROUTINE run_mixed_held_deck(deck, root, dt, has_dt, run_time, has_run_time, h
598598
ELSE
599599
consecutive_miss = 0
600600
END IF
601+
CALL CD_Profile_Enter(CD_PROF_OUTPUT)
601602
CALL CD_AGG_CalcOutput(aggregate, es, em)
602603
IF (es /= CD_AGG_OK) THEN
603604
CALL set_aggregate_error(es, em, run_stat, run_msg)

‎doc/cli.rst‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,10 @@ The phases add up to the total, which runs from the start of the deck parse to t
176176
run stops with an error, the time up to the stop counts to the phase in which it stopped, and
177177
finalisation stays at zero.
178178

179-
* **Initialisation and statics** covers building the models, the static equilibrium, any modal
180-
analysis, and the initial output rows. For a static deck it also covers writing the output
179+
* **Input parsing** covers reading the deck and its auxiliary files.
180+
* **Initialisation and statics** covers the synthesis of the deck's waves, building the models,
181+
the static equilibrium, any modal analysis, and the initial output rows. For a static deck it
182+
also covers writing the output
181183
files. On the mixed ``EI = 0`` + finite-EI route it includes the deck parse that builds the
182184
models.
183185
* **Fluid sampled by the driver** is the deck wave and current field that the driver samples at

‎src/CableDyn_DeckDriver.f90‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ MODULE CableDyn_DeckDriver
142142
CD_RIGID_NEWMARK_BETA
143143
USE CableDyn_SO3, ONLY: CD_Log_SO3, CD_Exp_SO3
144144
USE CableDyn_PathIO, ONLY: CD_Open_Input, CD_Native_Path, CD_Strip_BOM
145-
USE CableDyn_Profile, ONLY: CD_Profile_Enter, CD_Profile_Step, CD_PROF_INIT, CD_PROF_FLUID, CD_PROF_SOLVE, &
146-
CD_PROF_CHECK, CD_PROF_OUTPUT, CD_PROF_PROGRESS, CD_PROF_FINAL
145+
USE CableDyn_Profile, ONLY: CD_Profile_Enter, CD_Profile_Step, CD_PROF_INPUT, CD_PROF_INIT, CD_PROF_FLUID, &
146+
CD_PROF_SOLVE, CD_PROF_CHECK, CD_PROF_OUTPUT, CD_PROF_PROGRESS, CD_PROF_FINAL
147147
USE, INTRINSIC :: IEEE_ARITHMETIC, ONLY: IEEE_IS_FINITE
148148
USE, INTRINSIC :: ISO_FORTRAN_ENV, ONLY: error_unit, output_unit, int64
149149
IMPLICIT NONE
@@ -6170,14 +6170,17 @@ SUBROUTINE run_deck_driver(deck_path, out_root, converged, ErrStat, ErrMsg)
61706170
CALL fail(ErrStat, ErrMsg, 'FAILURE deck does not support seabed friction (the dynamic-point rule)'); RETURN
61716171
END IF
61726172
END IF
6173+
! the wave synthesis or stream-function solve is initialisation; the bathymetry file read input
6174+
CALL CD_Profile_Enter(CD_PROF_INIT)
61736175
CALL precompute_deck_wave(opts, ErrStat, ErrMsg)
61746176
IF (ErrStat /= 0) RETURN
61756177
IF (opts%has_bathymetry_file) THEN
6178+
CALL CD_Profile_Enter(CD_PROF_INPUT)
61766179
CALL load_bathymetry_file(path_join(deck_dir(deck_path), opts%bathymetry_file), bathymetry, ErrStat, ErrMsg, &
61776180
points=points)
61786181
IF (ErrStat /= 0) RETURN
6182+
CALL CD_Profile_Enter(CD_PROF_INIT)
61796183
END IF
6180-
CALL CD_Profile_Enter(CD_PROF_INIT)
61816184
CALL print_static_input_warnings(types, points, lines, sections, opts)
61826185
! free Rigid6 bodies and rods (jointly with Free/Connect points) start at their static
61836186
! equilibrium on every route: static-only, TMax = 0 and the dynamic march (pinned rods turn

0 commit comments

Comments
 (0)