Skip to content

Commit f66cc23

Browse files
committed
FDS Source: Shutdown properly if restart files do not exist
1 parent b936225 commit f66cc23

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Manuals/FDS_User_Guide/FDS_User_Guide.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14609,6 +14609,7 @@ \chapter{Error Codes}
1460914609
1044 \> \ct{Cannot set EXTERNAL_FILE=T for a RAMP used for an output clock ...} \> Section~\ref{info:external_control} \\
1461014610
1045 \> \ct{QUANTITY ... requires a PART_ID for particles with mass.} \> Section~\ref{tab:particleoutputquantities} \\
1461114611
\\
14612+
1050 \> \ct{The file ... does not exist. Set RESTART=.FALSE.} \> Section~\ref{info:restart} \\
1461214613
1051 \> \ct{RESTART initial time equals T_END.} \> Section~\ref{info:restart} \\
1461314614
1052 \> \ct{On TIME, do not set both RAMP_TIME and RAMP_DT.} \> Section~\ref{info:simulation_time_ramp} \\
1461414615
1053 \> \ct{One TIME, if one of DT_EXTERNAL_HEARTBEAT or} \> Section~\ref{info:external_control} \\

Source/dump.f90

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,12 +1528,10 @@ SUBROUTINE WRITE_SMOKEVIEW_FILE
15281528

15291529
! If this is a RESTART case but an old .smv file does not exist, shutdown with an ERROR.
15301530

1531-
IF( MY_RANK==0) THEN
1532-
INQUIRE(FILE=FN_SMV,EXIST=EX)
1533-
IF (.NOT.EX .AND. APPEND) THEN
1534-
WRITE(MESSAGE,'(A,A,A)') "ERROR: The file, ",TRIM(FN_SMV),", does not exist. Set RESTART=.FALSE."
1535-
CALL SHUTDOWN(MESSAGE) ; RETURN
1536-
ENDIF
1531+
INQUIRE(FILE=FN_SMV,EXIST=EX)
1532+
IF (.NOT.EX .AND. APPEND) THEN
1533+
WRITE(MESSAGE,'(A,A,A)') "ERROR(1050): The file, ",TRIM(FN_SMV),", does not exist. Set RESTART=.FALSE."
1534+
CALL SHUTDOWN(MESSAGE) ; RETURN
15371535
ENDIF
15381536

15391537
! If this is a RESTART case, there is no need to open the .smv file except for Process 0.

0 commit comments

Comments
 (0)