New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 10986 for NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/TRD/trdvor.F90 – NEMO

Ignore:
Timestamp:
2019-05-16T15:23:56+02:00 (5 years ago)
Author:
andmirek
Message:

GMED 462 add flush

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/NEMO_4.0_mirror_text_diagnostics/src/OCE/TRD/trdvor.F90

    r10888 r10986  
    200200 
    201201      IF( ndebug /= 0 ) THEN 
    202          IF(lwp) WRITE(numout,*) ' debuging trd_vor_zint: I done' 
    203          CALL FLUSH(numout) 
     202         IF(lwp) THEN 
     203            WRITE(numout,*) ' debuging trd_vor_zint: I done' 
     204            IF(lflush) CALL FLUSH(numout) 
     205         ENDIF 
    204206      ENDIF 
    205207      ! 
     
    291293    
    292294      IF( ndebug /= 0 ) THEN 
    293          IF(lwp) WRITE(numout,*) ' debuging trd_vor_zint: I done' 
    294          CALL FLUSH(numout) 
     295         IF(lwp) THEN 
     296            WRITE(numout,*) ' debuging trd_vor_zint: I done' 
     297            IF(lflush) CALL FLUSH(numout) 
     298         ENDIF 
    295299      ENDIF 
    296300      ! 
     
    416420            WRITE(numout,*) 'trd_vor : write trends in the NetCDF file at kt = ', kt 
    417421            WRITE(numout,*) '~~~~~~~  ' 
     422            IF(lflush) CALL FLUSH(numout) 
    418423         ENDIF 
    419424  
     
    434439         IF( ndebug /= 0 ) THEN 
    435440            WRITE(numout,*) ' debuging trd_vor: III.4 done' 
    436             CALL FLUSH(numout) 
     441            IF(lflush) CALL FLUSH(numout) 
    437442         ENDIF 
    438443         ! 
     
    477482         WRITE(numout,*) '               ##########################################################################' 
    478483         WRITE(numout,*) ' ' 
     484         IF(lflush) CALL FLUSH(numout) 
    479485      ENDIF 
    480486 
     
    490496      IF( ndebug /= 0 ) THEN 
    491497         WRITE(numout,*) ' debuging trd_vor_init: I. done' 
    492          CALL FLUSH(numout) 
     498         IF(lflush) CALL FLUSH(numout) 
    493499      ENDIF 
    494500 
     
    512518      zout = nn_trd*rdt 
    513519 
    514       IF(lwp) WRITE(numout,*) '               netCDF initialization' 
     520      IF(lwp) THEN 
     521         WRITE(numout,*) '               netCDF initialization' 
     522         IF(lflush) CALL FLUSH(numout) 
     523      ENDIF 
    515524 
    516525      ! II.2 Compute julian date from starting date of the run 
     
    518527      CALL ymds2ju( nyear, nmonth, nday, rdt, zjulian ) 
    519528      zjulian = zjulian - adatrj   !   set calendar origin to the beginning of the experiment 
    520       IF(lwp) WRITE(numout,*)' '   
    521       IF(lwp) WRITE(numout,*)'               Date 0 used :',nit000,    & 
     529      IF(lwp) THEN 
     530         WRITE(numout,*)' '   
     531         WRITE(numout,*)'               Date 0 used :',nit000,    & 
    522532         &                   ' YEAR ', nyear,' MONTH '      , nmonth,   & 
    523533         &                   ' DAY ' , nday, 'Julian day : ', zjulian 
     534         IF(lflush) CALL FLUSH(numout) 
     535      ENDIF 
    524536 
    525537      ! II.3 Define the T grid trend file (nidvor) 
    526538      ! --------------------------------- 
    527539      CALL dia_nam( clhstnam, nn_trd, 'vort' )                  ! filename 
    528       IF(lwp) WRITE(numout,*) ' Name of NETCDF file ', clhstnam 
     540      IF(lwp) THEN 
     541         WRITE(numout,*) ' Name of NETCDF file ', clhstnam 
     542         IF(lflush) CALL FLUSH(numout) 
     543      ENDIF 
    529544      CALL histbeg( clhstnam, jpi, glamf, jpj, gphif,1, jpi,   &  ! Horizontal grid : glamt and gphit 
    530545         &          1, jpj, nit000-1, zjulian, rdt, nh_t, nidvor, domain_id=nidom, snc4chunks=snc4set ) 
     
    562577      IF( ndebug /= 0 ) THEN 
    563578         WRITE(numout,*) ' debuging trd_vor_init: II. done' 
    564          CALL FLUSH(numout) 
     579         IF(lflush) CALL FLUSH(numout) 
    565580      ENDIF 
    566581      ! 
Note: See TracChangeset for help on using the changeset viewer.