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 9019 for branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/ASM/asmbkg.F90 – NEMO

Ignore:
Timestamp:
2017-12-13T15:58:53+01:00 (6 years ago)
Author:
timgraham
Message:

Merge of dev_CNRS_2017 into branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/ASM/asmbkg.F90

    r6140 r9019  
    2828   USE ldfslp             ! Lateral diffusion: slopes of neutral surfaces 
    2929   USE tradmp             ! Tracer damping 
    30 #if defined key_zdftke 
    3130   USE zdftke             ! TKE vertical physics 
    32 #endif 
    3331   USE eosbn2             ! Equation of state (eos_bn2 routine) 
    3432   USE zdfmxl             ! Mixed layer depth 
     
    3836   USE asmpar             ! Parameters for the assmilation interface 
    3937   USE zdfmxl             ! mixed layer depth 
    40 #if defined key_lim2 
    41    USE ice_2 
    42 #endif 
    4338#if defined key_lim3 
    4439   USE ice 
     
    9489            IF( nitbkg_r == nit000 - 1 ) THEN      ! Treat special case when nitbkg = 0 
    9590               zdate = REAL( ndastp ) 
    96 #if defined key_zdftke 
    97                ! lk_zdftke=T :   Read turbulent kinetic energy ( en ) 
    98                IF(lwp) WRITE(numout,*) ' Reading TKE (en) from restart...' 
    99                CALL tke_rst( nit000, 'READ' )               ! lk_zdftke=T :   Read turbulent kinetic energy ( en ) 
    100  
    101 #endif 
     91               IF( ln_zdftke ) THEN                   ! read turbulent kinetic energy ( en ) 
     92                  IF(lwp) WRITE(numout,*) ' Reading TKE (en) from restart...' 
     93                  CALL tke_rst( nit000, 'READ' ) 
     94               ENDIF 
    10295            ELSE 
    10396               zdate = REAL( ndastp ) 
     
    111104            CALL iom_rstput( kt, nitbkg_r, inum, 'sn'     , tsn(:,:,:,jp_sal) ) 
    112105            CALL iom_rstput( kt, nitbkg_r, inum, 'sshn'   , sshn              ) 
    113 #if defined key_zdftke 
    114             CALL iom_rstput( kt, nitbkg_r, inum, 'en'     , en                ) 
    115 #endif 
     106            IF( ln_zdftke )   CALL iom_rstput( kt, nitbkg_r, inum, 'en'     , en                ) 
    116107            ! 
    117108            CALL iom_close( inum ) 
     
    148139            CALL iom_rstput( kt, nitdin_r, inum, 'sn'     , tsn(:,:,:,jp_sal) ) 
    149140            CALL iom_rstput( kt, nitdin_r, inum, 'sshn'   , sshn              ) 
    150 #if defined key_lim2 || defined key_lim3 
    151             IF( nn_ice == 2  .OR.  nn_ice == 3 ) THEN 
    152                IF( ALLOCATED(frld) ) THEN 
    153                   CALL iom_rstput( kt, nitdin_r, inum, 'iceconc', 1._wp - frld(:,:)   ) 
     141#if defined key_lim3 
     142            IF( nn_ice == 2 ) THEN 
     143               IF( ALLOCATED(at_i) ) THEN 
     144                  CALL iom_rstput( kt, nitdin_r, inum, 'iceconc', at_i(:,:)   ) 
    154145               ELSE 
    155                   CALL ctl_warn('Ice concentration not written to background as ice variable frld not allocated on this timestep') 
     146                  CALL ctl_warn('asm_bkg_wri: Ice concentration not written to background ',   & 
     147                     &          'as ice variable at_i not allocated on this timestep') 
    156148               ENDIF 
    157149            ENDIF 
Note: See TracChangeset for help on using the changeset viewer.