Skip to content

Commit

Permalink
♻️ DISTP is an integer, not logical
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderHulst committed May 6, 2022
1 parent 0155d1a commit 91f6696
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model/ftn/w3partmd.ftn
Original file line number Diff line number Diff line change
Expand Up @@ -1276,15 +1276,15 @@
DENOM = XL*EH - XH*EL
SIGP = SIG(IFPMAX(IP))
!/ --- Parabolic fit around the spectral peak ---
IF (.NOT.DISTP .AND. DENOM.NE.0.) THEN
IF (DISTP.NE.1 .AND. DENOM.NE.0.) THEN
SIGP = SIGP *( 1. + 0.5 * ( XL2*EH - XH2*EL ) &
/ SIGN ( ABS(DENOM) , DENOM ) )
END IF
CALL WAVNU1 ( SIGP, DEPTH, WNP, CGP )
!
IK = IFPMAX(IP)
EFPMAX(IP) = SUMF(IK,IP) * DTH
IF (.NOT.DISTP .AND. IK.GT.1 .AND. IK.LT.NK) THEN
IF (DISTP.NE.1 .AND. IK.GT.1 .AND. IK.LT.NK) THEN
EL = SUMF(IK-1,IP) * DTH
EH = SUMF(IK+1,IP) * DTH
NUMER = 0.125 * ( EL - EH )**2
Expand Down

0 comments on commit 91f6696

Please sign in to comment.