Skip to content

Commit c3451a9

Browse files
Initialised S and D arrays in W3SDB1 before potential early return if zero energy. (#1115)
1 parent 4cd995d commit c3451a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

model/src/w3sdb1md.F90

+2-2
Original file line numberDiff line numberDiff line change
@@ -232,12 +232,12 @@ SUBROUTINE W3SDB1 (IX, A, DEPTH, EMEAN, FMEAN, WNMEAN, CG, LBREAK, S, D )
232232
!
233233
! 0. Initialzations ------------------------------------------------- /
234234
! Never touch this 4 lines below ... otherwise my exceptionhandling will not work.
235+
S = 0.
236+
D = 0.
235237

236238
THR = DBLE(1.E-15)
237239
IF (SUM(A) .LT. THR) RETURN
238240

239-
S = 0.
240-
D = 0.
241241
IWB = 1
242242
!
243243
#ifdef W3_T

0 commit comments

Comments
 (0)