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 7485 for branches/2016/dev_merge_2016/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfmxl.F90 – NEMO

Ignore:
Timestamp:
2016-12-12T09:33:37+01:00 (7 years ago)
Author:
cetlod
Message:

Remove CPP key key_offline and replace it with a logical l_offline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_merge_2016/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfmxl.F90

    r6352 r7485  
    1313   USE oce             ! ocean dynamics and tracers variables 
    1414   USE dom_oce         ! ocean space and time domain variables 
     15   USE trc_oce, ONLY: l_offline         ! ocean space and time domain variables 
    1516   USE zdf_oce         ! ocean vertical physics 
    1617   USE in_out_manager  ! I/O manager 
     
    2122   USE wrk_nemo        ! work arrays 
    2223   USE timing          ! Timing 
    23    USE trc_oce, ONLY : lk_offline ! offline flag 
    2424 
    2525   IMPLICIT NONE 
     
    128128         END DO 
    129129      END DO 
    130       ! no need to output in offline mode 
    131       IF( .NOT.lk_offline ) THEN    
    132          IF ( iom_use("mldr10_1") ) THEN 
    133             IF( ln_isfcav ) THEN 
    134                CALL iom_put( "mldr10_1", hmlp - risfdep)   ! mixed layer thickness 
    135             ELSE 
    136                CALL iom_put( "mldr10_1", hmlp )            ! mixed layer depth 
     130      ! 
     131      IF( .NOT.l_offline ) THEN 
     132         IF( iom_use("mldr10_1") ) THEN 
     133            IF( ln_isfcav ) THEN  ;  CALL iom_put( "mldr10_1", hmlp - risfdep)   ! mixed layer thickness 
     134            ELSE                  ;  CALL iom_put( "mldr10_1", hmlp )            ! mixed layer depth 
    137135            END IF 
    138136         END IF 
    139          IF ( iom_use("mldkz5") ) THEN 
    140             IF( ln_isfcav ) THEN 
    141                CALL iom_put( "mldkz5"  , hmld - risfdep )   ! turbocline thickness 
    142             ELSE 
    143                CALL iom_put( "mldkz5"  , hmld )             ! turbocline depth 
     137         IF( iom_use("mldkz5") ) THEN 
     138            IF( ln_isfcav ) THEN  ;  CALL iom_put( "mldkz5"  , hmld - risfdep )   ! turbocline thickness 
     139            ELSE                  ;  CALL iom_put( "mldkz5"  , hmld )             ! turbocline depth 
    144140            END IF 
    145          END IF 
     141         ENDIF 
    146142      ENDIF 
    147143       
Note: See TracChangeset for help on using the changeset viewer.