Skip to content

Commit 253d088

Browse files
committed
include code to terminate if SWL at boundary exceeds max profile elev
1 parent 6a7fc64 commit 253d088

File tree

5 files changed

+13505
-1
lines changed

5 files changed

+13505
-1
lines changed

src-repo/CSHORE_USACE.f

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@
217217
C
218218
C Store the first line of this CSHORE program on ODOC output file
219219
C ------------------------------------------------------------------
220-
VER = 'CSHORE USACE version, 2014 last edit 2019-02-08 ' !bdj
220+
VER = 'CSHORE USACE version, 2014 last edit 2022-03-22 ' !bdj
221+
C VER = 'CSHORE USACE version, 2014 last edit 2019-02-08 ' !bdj
221222
C VER = 'CSHORE USACE version, 2014 last edit 2018-08-28 ' !bdj
222223
C VER = 'CSHORE USACE version, 2014 last edit 2016-01-14' !bdj
223224
C VER = 'CSHORE USACE version, 2014 last edit 2015-07-06' !bdj
@@ -1242,6 +1243,23 @@
12421243
C Put "c" below if no output when TIME = 0
12431244
C IF(TIME.EQ.0.D0) CALL OUTPUT(ITIME,L,ITEQO,ICONV)
12441245
IF(IPROFL.GE.1) TIME=TIME+DELT
1246+
C BDJ 2021-12-13 added to check for SWL at bonudary that exceeds profile bed elevation
1247+
IF(IEND.EQ.1) THEN
1248+
IF(IPROFL.GT.0) THEN
1249+
IF((H(1)+zb(1,L))-maxval(zb(:,L)).GT.0) THEN
1250+
c write(*,*) 'BDJ ',time,H(1)+zb(1,L),maxval(zb(:,L)),
1251+
c + (H(1)+zb(1,L))-maxval(zb(:,L))
1252+
write(*,*) 'Water elevation at seaward boundary'
1253+
write(*,*) 'exceeds maximum elevation. Terminating'
1254+
write(*,*) 'run and deleting previosuly written output'
1255+
do i=20,40
1256+
close(i, status='delete')
1257+
enddo
1258+
stop
1259+
ENDIF
1260+
ENDIF
1261+
ENDIF
1262+
C end BDJ 2021-12-13 added to check for SWL at bonudary that exceeds profiel bed elevation
12451263
IF(IEND.EQ.1) THEN
12461264
CALL OUTPUT(ITIME,L,ITEQO,ICONV)
12471265
ENDIF

src-repo/CSHORE_USACE_LINUX.out

4 KB
Binary file not shown.

src-repo/cshore_usace_win.out

1 KB
Binary file not shown.

0 commit comments

Comments
 (0)