Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

w3iogomd.F90: fix IF-stmt indention #20

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions model/src/w3iogomd.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1602,16 +1602,16 @@ SUBROUTINE W3OUTG ( A, FLPART, FLOUTG, FLOUTG2 )
TPMS(JSEA) = TPI/SIG(IK)
END IF

IF (LMPENABLED) then
IF (LMPENABLED) then
IF (HSLMODE.EQ.0) then
LHSL = 10.0 ! a constant value for testing purposes
ELSE
! Get surface layer depth from coupler
IX = MAPSF(ISEA,1)
IY = MAPSF(ISEA,2)
LHSL = HSL(IX,IY) ! depth over which SD is averaged
END IF
END IF
END IF

!
! Directional moments in the last freq. band
Expand Down Expand Up @@ -1654,12 +1654,12 @@ SUBROUTINE W3OUTG ( A, FLPART, FLOUTG, FLOUTG2 )
GRAV*WN(IK,ISEA) * EBD(IK,JSEA) / (SINH(2.*KD))
IF (LMPENABLED) THEN
USSCOH=0.5*FKD*SIG(IK)*(1.-EXP(-2.*WN(IK,ISEA)*LHSL))/LHSL*COSH(2.*KD)
ENDIF
ENDIF
ELSE
USSCO=FACTOR*SIG(IK)*2.*WN(IK,ISEA)
IF (LMPENABLED) THEN
USSCOH=FACTOR*SIG(IK)*(1.-EXP(-2.*WN(IK,ISEA)*LHSL))/LHSL
ENDIF
ENDIF
END IF
!
ABXX(JSEA) = MAX ( 0. , ABXX(JSEA) ) * FACTOR
Expand All @@ -1678,7 +1678,7 @@ SUBROUTINE W3OUTG ( A, FLPART, FLOUTG, FLOUTG2 )
IF (LMPENABLED) THEN
USSHX(JSEA) = USSHX(JSEA) + ABX(JSEA)*USSCOH
USSHY(JSEA) = USSHY(JSEA) + ABY(JSEA)*USSCOH
ENDIF
ENDIF
!
! Fills the 3D Stokes drift spectrum array
! ! The US3D Stokes drift specrum array is now calculated in a
Expand Down Expand Up @@ -1961,8 +1961,8 @@ SUBROUTINE W3OUTG ( A, FLPART, FLOUTG, FLOUTG2 )
IX = MAPSF(ISEA,1)
IY = MAPSF(ISEA,2)
LHSL = HSL(IX,IY) ! depth over which SD is averaged
END IF
END IF
END IF
!
! 3.a Directional mss parameters
! NB: the slope PDF is proportional to ell1=ETYY*EC2-2*ETXY*ECS+ETXX*ES2 = C*EC2-2*B*ECS+A*ES2
Expand Down Expand Up @@ -2008,7 +2008,7 @@ SUBROUTINE W3OUTG ( A, FLPART, FLOUTG, FLOUTG2 )
USSHY(JSEA) = USSHY(JSEA) + 2*GRAV*ETUSCY(JSEA)/SIG(NK) &
*(1.-(1.-4.*LHSL*WN(NK,ISEA))*EXP(-2.*WN(NK,ISEA)*LHSL)) &
/6./WN(NK,ISEA)/LHSL
END IF
END IF
UBS(JSEA) = UBS(JSEA) + FTWL * EBAND/GRAV
END DO
!
Expand Down