Skip to content

Commit 0fa3575

Browse files
committed
fix: leave a failed static run in its initialisation phase
The static route entered the finalisation phase right after write_out, so a static solve that did not converge, or an output that failed, charged its error handling to finalisation. It now enters finalisation only after a converged solve whose output was written. Signed-off-by: Jae Hoon Seo <jaehoon.seo@inha.ac.kr>
1 parent 75429fd commit 0fa3575

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/CableDyn_DeckDriver.f90‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6509,7 +6509,8 @@ SUBROUTINE run_deck_driver(deck_path, out_root, converged, ErrStat, ErrMsg)
65096509

65106510
CALL write_out(out_root, channels, lines, points, ne, q_all, q_off, ten_all, ten_off, converged, ErrStat, ErrMsg, &
65116511
end_ten=end_all, end_force=end_vec, opts=opts, bathymetry=bathymetry)
6512-
CALL CD_Profile_Enter(CD_PROF_FINAL)
6512+
! a failed static run stays in initialisation, where it stopped
6513+
IF (ErrStat == CD_DECKDRV_OK .AND. converged) CALL CD_Profile_Enter(CD_PROF_FINAL)
65136514
IF (opts%has_bathymetry_file) CALL CD_End_Bathymetry(bathymetry)
65146515
IF (ErrStat /= 0) RETURN
65156516
IF (.NOT. converged) THEN

0 commit comments

Comments
 (0)