Skip to content

Commit

Permalink
remove if statement that is re-checking if statement it is nested in
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaMeixner-NOAA committed Mar 15, 2024
1 parent f66b6d4 commit f75035c
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions model/src/w3wavemd.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2675,14 +2675,12 @@ SUBROUTINE W3WAVE ( IMOD, ODAT, TEND, STAMP, NO_OUT &
!
! 4.e Update next output time
!
IF ( FLOUT(J) ) THEN
IF ( TOFRST(1).EQ.-1 ) THEN
IF ( TOFRST(1).EQ.-1 ) THEN
TOFRST = TOUT
ELSE
DTTST = DSEC21 ( TOUT , TOFRST )
IF ( DTTST.GT.0.) THEN
TOFRST = TOUT
ELSE
DTTST = DSEC21 ( TOUT , TOFRST )
IF ( DTTST.GT.0.) THEN
TOFRST = TOUT
END IF
END IF
END IF
!
Expand Down Expand Up @@ -2722,14 +2720,12 @@ SUBROUTINE W3WAVE ( IMOD, ODAT, TEND, STAMP, NO_OUT &
!
! 4.e Update next output time
!
IF ( FLOUT(J) ) THEN
IF ( TOFRST(1).EQ.-1 ) THEN
IF ( TOFRST(1).EQ.-1 ) THEN
TOFRST = TOUT
ELSE
DTTST = DSEC21 ( TOUT , TOFRST )
IF ( DTTST.GT.0.) THEN
TOFRST = TOUT
ELSE
DTTST = DSEC21 ( TOUT , TOFRST )
IF ( DTTST.GT.0.) THEN
TOFRST = TOUT
END IF
END IF
END IF
END IF
Expand Down

0 comments on commit f75035c

Please sign in to comment.