Skip to content

Commit

Permalink
init_bugs2: do some cleaning of the code, since those variables are i…
Browse files Browse the repository at this point in the history
…nit in w3srce before the call it should not alter the results
  • Loading branch information
aronroland committed Nov 25, 2024
1 parent 6136f10 commit 7d444bf
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
3 changes: 0 additions & 3 deletions model/src/w3sdb1md.F90
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,7 @@ SUBROUTINE W3SDB1 (IX, A, DEPTH, EMEAN, FMEAN, WNMEAN, CG, LBREAK, S, D )
#endif
!
! 0. Initialzations ------------------------------------------------- /
! Never touch this 4 lines below ... otherwise my exceptionhandling will not work.
IF (EMEAN .LT. TINY(1.d0)) THEN
S = 0
D = 0
RETURN
ENDIF

Expand Down
2 changes: 1 addition & 1 deletion model/src/w3srcemd.F90
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
!> @file

!> @brief Source term integration routine.
!>
!> @author H. L. Tolman
Expand Down
2 changes: 0 additions & 2 deletions model/src/w3str1md.F90
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,6 @@ SUBROUTINE W3STR1 (A, CG, WN, DEPTH, IX, S, D)
! 1. Integral over directions
!
IF (MAXVAL(A) .LT. TINY(1.)) THEN
S = 0
D = 0
RETURN
ENDIF

Expand Down

0 comments on commit 7d444bf

Please sign in to comment.