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 4220 for branches/2013/dev_r4028_CNRS_LIM3/NEMOGCM/NEMO/OPA_SRC/step.F90 – NEMO

Ignore:
Timestamp:
2013-11-15T16:36:52+01:00 (11 years ago)
Author:
clem
Message:

corrections for restartability

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_r4028_CNRS_LIM3/NEMOGCM/NEMO/OPA_SRC/step.F90

    r4155 r4220  
    9090      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 
    9191                         CALL sbc    ( kstp )         ! Sea Boundary Condition (including sea-ice) 
     92 
    9293      IF( lk_tide.AND.(kstp /= nit000 ))   CALL tide_init ( kstp ) 
    9394      IF( lk_tide    )   CALL sbc_tide( kstp ) 
     
    108109      ! 
    109110      !  VERTICAL PHYSICS 
    110       ! bg jchanut tschanges 
    111       ! One need bottom friction parameter in ssh_wzv routine with time splitting. 
    112       ! The idea could be to move the call below before ssh_wzv. However, "now" scale factors 
    113       ! at U-V points (which are set thanks to sshu_n, sshv_n) are actually available in sshwzv. 
    114       ! These are needed for log bottom friction... 
    115 #if ! defined key_dynspg_ts 
    116111                         CALL zdf_bfr( kstp )         ! bottom friction 
    117 #endif 
    118       ! end jchanut tschanges 
    119112 
    120113      !                                               ! Vertical eddy viscosity and diffusivity coefficients 
     
    214207            &                                          rhd, gru , grv  )      ! of t, s, rd at the last ocean level 
    215208 
    216       ELSE    
    217                                                ! centered hpg  (eos then time stepping) 
    218       ! bg jchanut tschanges 
    219 #if ! defined key_dynspg_ts 
    220       ! eos already called 
     209      ELSE                                                  ! centered hpg  (eos then time stepping) 
    221210                             CALL eos    ( tsn, rhd, rhop )      ! now in situ density for hpg computation 
    222211         IF( ln_zps      )   CALL zps_hde( kstp, jpts, tsn, gtsu, gtsv,  &    ! zps: now hor. derivative 
    223212            &                                          rhd, gru , grv  )      ! of t, s, rd at the last ocean level 
    224 #endif 
    225       ! end jchanut tschanges 
    226213         IF( ln_zdfnpc   )   CALL tra_npc( kstp )                ! update after fields by non-penetrative convection 
    227214                             CALL tra_nxt( kstp )                ! tracer fields at next time step 
     
    231218      ! Dynamics                                    (tsa used as workspace) 
    232219      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 
    233       ! bg jchanut tschanges 
    234 #if defined key_dynspg_ts       
    235 ! revert to previously computed tendencies: 
    236 ! (not using ua, va as temporary arrays during tracers' update could avoid that) 
    237                                ua(:,:,:) = ua_bak(:,:,:)             
    238                                va(:,:,:) = va_bak(:,:,:) 
    239                                CALL dyn_bfr( kstp )         ! bottom friction 
    240                                CALL dyn_zdf( kstp )         ! vertical diffusion 
    241 #else 
    242       ! end jchanut tschanges 
    243220                               ua(:,:,:) = 0.e0             ! set dynamics trends to zero 
    244221                               va(:,:,:) = 0.e0 
     
    260237                               CALL dyn_zdf( kstp )         ! vertical diffusion 
    261238                               CALL dyn_spg( kstp, indic )  ! surface pressure gradient 
    262       ! bg jchanut tschanges 
    263 #endif 
    264       ! end jchanut tschanges 
    265239                               CALL dyn_nxt( kstp )         ! lateral velocity at next time step 
    266240 
Note: See TracChangeset for help on using the changeset viewer.