Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/upstream/dev/ufs-weather-model'…
Browse files Browse the repository at this point in the history
… into feature/hafsv2_baseline
  • Loading branch information
BinLiu-NOAA committed Nov 8, 2023
2 parents 356d080 + 02693d8 commit c96ce38
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion model/src/w3wavemd.F90
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ SUBROUTINE W3WAVE ( IMOD, ODAT, TEND, STAMP, NO_OUT &
REAL :: ICEDAVE
!
LOGICAL :: SBSED
LOGICAL :: CPLWRTFLG
#ifdef W3_SEC1
INTEGER :: ISEC1
#endif
Expand Down Expand Up @@ -2432,8 +2433,14 @@ SUBROUTINE W3WAVE ( IMOD, ODAT, TEND, STAMP, NO_OUT &
do_startall = .true.
end IF
else
CPLWRTFLG=.FALSE.
IF ( FLOUT(7) .AND. SBSED ) THEN
IF (DSEC21(TIME,TONEXT(:,7)).EQ.0.) THEN
CPLWRTFLG=.TRUE.
END IF
END IF
IF ( ( (DSEC21(TIME,TONEXT(:,1)).EQ.0.) .AND. FLOUT(1) ) .OR. &
( (DSEC21(TIME,TONEXT(:,7)).EQ.0.) .AND. FLOUT(7) .AND. SBSED ) ) THEN
( CPLWRTFLG ) ) THEN
do_startall = .true.
end IF
end if
Expand Down

0 comments on commit c96ce38

Please sign in to comment.