Skip to content

Commit

Permalink
fix to logic around CALL W3SIC4
Browse files Browse the repository at this point in the history
  • Loading branch information
erinethomas committed Feb 12, 2025
1 parent 6510abc commit 031da9d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion model/src/w3srcemd.F90
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,9 @@ SUBROUTINE W3SRCE ( srce_call, IT, ISEA, JSEA, IX, IY, IMOD, &
! viscoelastic sea ice model (Wang and Shen 2010).
! !/IC4 Dissipation via interaction with ice as a function of freq.
! (empirical/parametric methods)
! !/IC4_ACCURATE_NUMERICS
! Correction for numerics for wave damping in sea ice.
! only tested for use with IC4M10 (Meylan et al 2021)
! !/IC5 Dissipation via interaction with ice according to a
! viscoelastic sea ice model (Mosig et al. 2015).
! !/DB0 No depth-limited breaking. ( Choose one )
Expand Down Expand Up @@ -1328,8 +1331,8 @@ SUBROUTINE W3SRCE ( srce_call, IT, ISEA, JSEA, IX, IY, IMOD, &
!
! Sea Ice Damping Source Term
!
#ifdef W3_IC4_ACCURATE_NUMERICS
#ifdef W3_IC4
#ifdef W3_IC4_ACCURATE_NUMERICS
if (ICE.GT.0) CALL W3SIC4 ( SPEC,DEPTH, CG1, &
IX, IY, VSIC, VDIC )
#endif
Expand Down Expand Up @@ -2114,9 +2117,11 @@ SUBROUTINE W3SRCE ( srce_call, IT, ISEA, JSEA, IX, IY, IMOD, &
#ifdef W3_IC3
CALL W3SIC3 ( SPEC,DEPTH, CG1, WN1, IX, IY, VSIC, VDIC )
#endif
#ifdef W3_IC4
#ifndef W3_IC4_ACCURATE_NUMERICS
CALL W3SIC4 ( SPEC,DEPTH, CG1, IX, IY, VSIC, VDIC )
#endif
#endif
#ifdef W3_IC5
CALL W3SIC5 ( SPEC,DEPTH, CG1, WN1, IX, IY, VSIC, VDIC )
#endif
Expand Down

0 comments on commit 031da9d

Please sign in to comment.