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/ZDF/zdfosm.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/ZDF/zdfosm.F90

    r10968 r10986  
    14181418        WRITE(numout,*) '     Use large mixing below BL when unstable       ln_convmix = ', ln_convmix 
    14191419        WRITE(numout,*) '     diffusivity when unstable below BL     (m2/s) rn_difconv = ', rn_difconv 
     1420        IF(lflush) CALL FLUSH(numout) 
    14201421     ENDIF 
    14211422 
     
    14301431           WRITE(numout,*) '    Double diffusion mixing on temperature and salinity ' 
    14311432           WRITE(numout,*) '    CAUTION : done in routine zdfosm, not in routine zdfddm ' 
     1433           IF(lflush) CALL FLUSH(numout) 
    14321434        ENDIF 
    14331435     ENDIF 
     
    14391441     IF(lwp) THEN 
    14401442        WRITE(numout,*) 
     1443        IF(lflush) CALL FLUSH(numout) 
    14411444     ENDIF 
    14421445 
     
    14951498 
    14961499     END SELECT 
    1497  
     1500     IF(lwp .AND. lflush) CALL FLUSH(numout) 
    14981501     ! Initialization of vertical eddy coef. to the background value 
    14991502     ! ------------------------------------------------------------- 
     
    15461549        IF( id1 > 0 ) THEN                       ! 'wn' exists; read 
    15471550           CALL iom_get( numror, jpdom_autoglo, 'wn', wn, ldxios = lrxios ) 
    1548            WRITE(numout,*) ' ===>>>> :  wn read from restart file' 
     1551           IF(lwp) THEN 
     1552              WRITE(numout,*) ' ===>>>> :  wn read from restart file' 
     1553              IF(lflush) CALL FLUSH(numout) 
     1554           ENDIF 
    15491555        ELSE 
    15501556           wn(:,:,:) = 0._wp 
    1551            WRITE(numout,*) ' ===>>>> :  wn not in restart file, set to zero initially' 
     1557           IF(lwp) THEN 
     1558              WRITE(numout,*) ' ===>>>> :  wn not in restart file, set to zero initially' 
     1559              IF(lflush) CALL FLUSH(numout) 
     1560           ENDIF 
    15521561        END IF 
    15531562        id1 = iom_varid( numror, 'hbl'   , ldstop = .FALSE. ) 
     
    15561565           CALL iom_get( numror, jpdom_autoglo, 'hbl' , hbl , ldxios = lrxios ) 
    15571566           CALL iom_get( numror, jpdom_autoglo, 'hbli', hbli, ldxios = lrxios  ) 
    1558            WRITE(numout,*) ' ===>>>> :  hbl & hbli read from restart file' 
     1567           IF(lwp) THEN 
     1568              WRITE(numout,*) ' ===>>>> :  hbl & hbli read from restart file' 
     1569              IF(lflush) CALL FLUSH(numout) 
     1570           ENDIF 
    15591571           RETURN 
    15601572        ELSE                      ! 'hbl' & 'hbli' not in restart file, recalculate 
    1561            WRITE(numout,*) ' ===>>>> : previous run without osmosis scheme, hbl computed from stratification' 
     1573           IF(lwp) THEN 
     1574              WRITE(numout,*) ' ===>>>> : previous run without osmosis scheme, hbl computed from stratification' 
     1575              IF(lflush) CALL FLUSH(numout) 
     1576           ENDIF 
    15621577        END IF 
    15631578     END IF 
     
    15671582     !!----------------------------------------------------------------------------- 
    15681583     IF( TRIM(cdrw) == 'WRITE') THEN     !* Write hbli into the restart file, then return 
    1569         IF(lwp) WRITE(numout,*) '---- osm-rst ----' 
     1584         IF(lwp .AND. nprint > 0) THEN 
     1585            WRITE(numout,*) '---- osm-rst ----' 
     1586            IF(lflush) CALL FLUSH(numout) 
     1587         ENDIF 
    15701588         CALL iom_rstput( kt, nitrst, numrow, 'wn'     , wn  , ldxios = lwxios ) 
    15711589         CALL iom_rstput( kt, nitrst, numrow, 'hbl'    , hbl , ldxios = lwxios ) 
     
    15771595     ! Getting hbl, no restart file with hbl, so calculate from surface stratification 
    15781596     !!----------------------------------------------------------------------------- 
    1579      IF( lwp ) WRITE(numout,*) ' ===>>>> : calculating hbl computed from stratification' 
     1597     IF( lwp ) THEN 
     1598        WRITE(numout,*) ' ===>>>> : calculating hbl computed from stratification' 
     1599        IF(lflush) CALL FLUSH(numout) 
     1600     ENDIF 
    15801601     ALLOCATE( imld_rst(jpi,jpj) ) 
    15811602     ! w-level of the mixing and mixed layers 
     
    16061627     hbli(:,:) = hbl(:,:) 
    16071628     DEALLOCATE( imld_rst ) 
    1608      WRITE(numout,*) ' ===>>>> : hbl computed from stratification' 
     1629     IF(lwp) THEN 
     1630        WRITE(numout,*) ' ===>>>> : hbl computed from stratification' 
     1631        IF(lflush) CALL FLUSH(numout) 
     1632     ENDIF 
    16091633   END SUBROUTINE osm_rst 
    16101634 
     
    16231647      INTEGER :: ji, jj, jk 
    16241648      ! 
    1625       IF( kt == nit000 ) THEN 
    1626          IF(lwp) WRITE(numout,*) 
    1627          IF(lwp) WRITE(numout,*) 'tra_osm : OSM non-local tracer fluxes' 
    1628          IF(lwp) WRITE(numout,*) '~~~~~~~   ' 
     1649      IF( kt == nit000 .AND. lwp) THEN 
     1650         WRITE(numout,*) 
     1651         WRITE(numout,*) 'tra_osm : OSM non-local tracer fluxes' 
     1652         WRITE(numout,*) '~~~~~~~   ' 
     1653         IF(lflush) CALL FLUSH(numout) 
    16291654      ENDIF 
    16301655 
     
    16981723      !!---------------------------------------------------------------------- 
    16991724      ! 
    1700       IF( kt == nit000 ) THEN 
    1701          IF(lwp) WRITE(numout,*) 
    1702          IF(lwp) WRITE(numout,*) 'dyn_osm : OSM non-local velocity' 
    1703          IF(lwp) WRITE(numout,*) '~~~~~~~   ' 
     1725      IF( kt == nit000 .AND. lwp) THEN 
     1726         WRITE(numout,*) 
     1727         WRITE(numout,*) 'dyn_osm : OSM non-local velocity' 
     1728         WRITE(numout,*) '~~~~~~~   ' 
     1729         IF(lflush) CALL FLUSH(numout) 
    17041730      ENDIF 
    17051731      !code saving tracer trends removed, replace with trdmxl_oce 
Note: See TracChangeset for help on using the changeset viewer.