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 5777 for branches/2015/dev_r5721_CNRS9_NOC3_LDF/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90 – NEMO

Ignore:
Timestamp:
2015-10-06T13:40:42+02:00 (9 years ago)
Author:
gm
Message:

#1593: LDF-ADV, III. Phasing of the improvements/simplifications of ADV & LDF momentum trends (see wiki page)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5721_CNRS9_NOC3_LDF/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90

    r5737 r5777  
    99   !!            3.3  !  2010-04  (M. Leclair, G. Madec)  modified LF-RA 
    1010   !!            - -  !  2010-10  (C. Ethe, G. Madec) TRC-TRA merge (T-S in 4D) 
     11   !!            3.7  !  2014-01  (G. Madec) suppression of curl and hdiv from the restart 
     12   !!             -   !  2014-12  (G. Madec) remove KPP scheme 
    1113   !!---------------------------------------------------------------------- 
    1214 
     
    1820   USE oce             ! ocean dynamics and tracers  
    1921   USE dom_oce         ! ocean space and time domain 
     22   USE sbc_ice         ! only lk_lim3  
    2023   USE phycst          ! physical constants 
     24   USE eosbn2          ! equation of state            (eos bn2 routine) 
     25   USE trdmxl_oce      ! ocean active mixed layer tracers trends variables 
     26   ! 
    2127   USE in_out_manager  ! I/O manager 
    2228   USE iom             ! I/O module 
    23    USE eosbn2          ! equation of state            (eos bn2 routine) 
    24    USE trdmxl_oce      ! ocean active mixed layer tracers trends variables 
    25    USE divcur          ! hor. divergence and curl      (div & cur routines) 
    2629 
    2730   IMPLICIT NONE 
     
    130133                     CALL iom_rstput( kt, nitrst, numrow, 'tb'     , tsb(:,:,:,jp_tem) ) 
    131134                     CALL iom_rstput( kt, nitrst, numrow, 'sb'     , tsb(:,:,:,jp_sal) ) 
    132                      CALL iom_rstput( kt, nitrst, numrow, 'rotb'   , rotb      ) 
    133                      CALL iom_rstput( kt, nitrst, numrow, 'hdivb'  , hdivb     ) 
    134135                     CALL iom_rstput( kt, nitrst, numrow, 'sshb'   , sshb      ) 
    135136                     ! 
     
    138139                     CALL iom_rstput( kt, nitrst, numrow, 'tn'     , tsn(:,:,:,jp_tem) ) 
    139140                     CALL iom_rstput( kt, nitrst, numrow, 'sn'     , tsn(:,:,:,jp_sal) ) 
    140                      CALL iom_rstput( kt, nitrst, numrow, 'rotn'   , rotn      ) 
    141                      CALL iom_rstput( kt, nitrst, numrow, 'hdivn'  , hdivn     ) 
    142141                     CALL iom_rstput( kt, nitrst, numrow, 'sshn'   , sshn      ) 
    143142                     CALL iom_rstput( kt, nitrst, numrow, 'rhop'   , rhop      ) 
    144 #if defined key_zdfkpp 
    145                      CALL iom_rstput( kt, nitrst, numrow, 'rhd'    , rhd       ) 
    146 #endif 
    147143      IF( kt == nitrst ) THEN 
    148144         CALL iom_close( numrow )     ! close the restart file (only at last time step) 
     
    228224         CALL iom_get( numror, jpdom_autoglo, 'tb'     , tsb(:,:,:,jp_tem) ) 
    229225         CALL iom_get( numror, jpdom_autoglo, 'sb'     , tsb(:,:,:,jp_sal) ) 
    230          CALL iom_get( numror, jpdom_autoglo, 'rotb'   , rotb    ) 
    231          CALL iom_get( numror, jpdom_autoglo, 'hdivb'  , hdivb   ) 
    232226         CALL iom_get( numror, jpdom_autoglo, 'sshb'   , sshb    ) 
    233227      ELSE 
     
    240234      CALL iom_get( numror, jpdom_autoglo, 'sn'     , tsn(:,:,:,jp_sal) ) 
    241235      CALL iom_get( numror, jpdom_autoglo, 'sshn'   , sshn    ) 
    242       IF( iom_varid( numror, 'rotn', ldstop = .FALSE. ) > 0 ) THEN 
    243          CALL iom_get( numror, jpdom_autoglo, 'rotn'   , rotn    ) 
    244          CALL iom_get( numror, jpdom_autoglo, 'hdivn'  , hdivn   ) 
    245       ELSE 
    246          CALL div_cur( 0 )                              ! Horizontal divergence & Relative vorticity 
    247       ENDIF 
    248236      IF( iom_varid( numror, 'rhop', ldstop = .FALSE. ) > 0 ) THEN 
    249237         CALL iom_get( numror, jpdom_autoglo, 'rhop'   , rhop    )   ! now    potential density 
     
    251239         CALL eos    ( tsn, rhd, rhop, fsdept_n(:,:,:) )    
    252240      ENDIF 
    253 #if defined key_zdfkpp 
    254       IF( iom_varid( numror, 'rhd', ldstop = .FALSE. ) > 0 ) THEN 
    255          CALL iom_get( numror, jpdom_autoglo, 'rhd'    , rhd     )   ! now    in situ density anomaly 
    256       ELSE 
    257          CALL eos( tsn, rhd, fsdept_n(:,:,:) )   ! compute rhd 
    258       ENDIF 
    259 #endif 
    260241      ! 
    261242      IF( neuler == 0 ) THEN                                  ! Euler restart (neuler=0) 
     
    263244         ub   (:,:,:)   = un   (:,:,:) 
    264245         vb   (:,:,:)   = vn   (:,:,:) 
    265          rotb (:,:,:)   = rotn (:,:,:) 
    266          hdivb(:,:,:)   = hdivn(:,:,:) 
    267246         sshb (:,:)     = sshn (:,:) 
    268247         ! 
Note: See TracChangeset for help on using the changeset viewer.