Skip to content

Commit

Permalink
Bugfix erroneous output in oops (ecmwf-ifs#37)
Browse files Browse the repository at this point in the history
Co-authored-by: Jean Bidlot <[email protected]>
  • Loading branch information
2 people authored and awnawab committed Nov 22, 2024
1 parent 6ba169d commit 26221e0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/ecwam/outstep0.F90
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ SUBROUTINE OUTSTEP0 (WVENVI, WVPRPT, FF_NOW, INTFLDS, &
USE YOWPARAM , ONLY : NANG ,NFRE ,LLUNSTR
USE YOWSTAT , ONLY : CDTPRO ,CDTINTT ,IREST , MARSTYPE , &
& LLSOURCE , LANAONLY ,LFRSTFLD
USE YOWTEST , ONLY : IU06
USE YOWTEXT , ONLY : LRESTARTED
#ifdef WAM_HAVE_UNWAM
USE UNWAM , ONLY : EXCHANGE_FOR_FL1
Expand Down Expand Up @@ -219,11 +220,15 @@ SUBROUTINE OUTSTEP0 (WVENVI, WVPRPT, FF_NOW, INTFLDS, &
IF ( .NOT. LRESTARTED ) THEN
IF (IREST == 1 .AND. MARSTYPE /= 'an' .AND. LGRIBOUT) THEN
CALL OUTSPEC(FL1, FF_NOW)
WRITE(IU06,*) ''
WRITE(IU06,*) ' OUTSTEP0: OUTSPEC WAS CALLED !'
LLFLUSH = .TRUE.
ENDIF

IF (NIPRMOUT > 0 ) THEN
CALL OUTWINT(BOUTST0)
WRITE(IU06,*) ''
WRITE(IU06,*) ' OUTSTEP0: OUTWINT WAS CALLED !'
LLFLUSH = .TRUE.
ENDIF

Expand Down
7 changes: 6 additions & 1 deletion src/ecwam/wavemdl.F90
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ SUBROUTINE WAVEMDL (CBEGDAT, PSTEP, KSTOP, KSTPW, &

USE PARKIND_WAVE, ONLY : JWIM, JWRB, JWRU

USE YOWCOUT , ONLY : CASS ,NASS
USE YOWCOUT , ONLY : CASS ,NASS, LWAMANOUT
USE YOWCOUP , ONLY : LWCOU, LWCOU2W, LWCOUHMF, LWFLUX, &
& LWCOUNORMS, LLNORMWAMOUT_GLOBAL, LLNORMWAM2IFS, &
& KCOUSTEP, LMASK_OUT_NOT_SET, LMASK_TASK_STR, &
Expand Down Expand Up @@ -1036,6 +1036,11 @@ SUBROUTINE WAVEMDL (CBEGDAT, PSTEP, KSTOP, KSTPW, &
! 4. END OF RUN ?
! -----------
IF (CDATEE == CDTPRO) THEN
IF(LWCOU) THEN
! Prevent any further output until the namelist is read again.
LWAMANOUT = .FALSE.
WRITE(IU06,*) ' WAVEMDL: NORMAL END OF RUN. OUTPUT IS NOW DISABLED !'
ENDIF
CALL MPL_BARRIER(CDSTRING='WAVEMDL: END')
CALL FLUSH(IU06)
ENDIF
Expand Down

0 comments on commit 26221e0

Please sign in to comment.