Skip to content

Commit

Permalink
Initialised S and D arrays in W3SDB1 before potential early return if…
Browse files Browse the repository at this point in the history
… zero energy. (#1115)
  • Loading branch information
ukmo-ccbunney authored Nov 1, 2023
1 parent 4cd995d commit c3451a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model/src/w3sdb1md.F90
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,12 @@ SUBROUTINE W3SDB1 (IX, A, DEPTH, EMEAN, FMEAN, WNMEAN, CG, LBREAK, S, D )
!
! 0. Initialzations ------------------------------------------------- /
! Never touch this 4 lines below ... otherwise my exceptionhandling will not work.
S = 0.
D = 0.

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

S = 0.
D = 0.
IWB = 1
!
#ifdef W3_T
Expand Down

0 comments on commit c3451a9

Please sign in to comment.