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 3764 for branches/2012/dev_MERGE_2012/NEMOGCM/NEMO/OPA_SRC/step.F90 – NEMO

Ignore:
Timestamp:
2013-01-23T15:33:04+01:00 (11 years ago)
Author:
smasson
Message:

dev_MERGE_2012: report bugfixes done in the trunk from r3555 to r3763 into dev_MERGE_2012

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2012/dev_MERGE_2012/NEMOGCM/NEMO/OPA_SRC/step.F90

    r3701 r3764  
    2929   !!   stp             : OPA system time-stepping 
    3030   !!---------------------------------------------------------------------- 
    31    USE step_oce         ! time stepping definition modules  
     31   USE step_oce         ! time stepping definition modules 
    3232#if defined key_top 
    3333   USE trcstp           ! passive tracer time-stepping      (trc_stp routine) 
     
    6262      !!---------------------------------------------------------------------- 
    6363      !!                     ***  ROUTINE stp  *** 
    64       !!                       
     64      !! 
    6565      !! ** Purpose : - Time stepping of OPA (momentum and active tracer eqs.) 
    6666      !!              - Time stepping of LIM (dynamic and thermodynamic eqs.) 
    6767      !!              - Tme stepping  of TRC (passive tracer eqs.) 
    68       !!  
    69       !! ** Method  : -1- Update forcings and data   
    70       !!              -2- Update ocean physics  
    71       !!              -3- Compute the t and s trends  
    72       !!              -4- Update t and s  
     68      !! 
     69      !! ** Method  : -1- Update forcings and data 
     70      !!              -2- Update ocean physics 
     71      !!              -3- Compute the t and s trends 
     72      !!              -4- Update t and s 
    7373      !!              -5- Compute the momentum trends 
    7474      !!              -6- Update the horizontal velocity 
     
    8686# if defined key_iomput 
    8787      IF( Agrif_Nbstepint() == 0 )   CALL iom_swap 
    88 # endif    
    89 #endif    
     88# endif 
     89#endif 
    9090                             indic = 0                ! reset to no error condition 
    9191      IF( kstp /= nit000 )   CALL day( kstp )         ! Calendar (day was already called at nit000 in day_init) 
     
    113113                         CALL bn2( tsn, rn2  )        ! now    Brunt-Vaisala frequency 
    114114      ! 
    115       !  VERTICAL PHYSICS    
     115      !  VERTICAL PHYSICS 
    116116                         CALL zdf_bfr( kstp )         ! bottom friction 
    117                           
     117 
    118118      !                                               ! Vertical eddy viscosity and diffusivity coefficients 
    119119      IF( lk_zdfric  )   CALL zdf_ric( kstp )            ! Richardson number dependent Kz 
     
    135135      IF( lk_zdfddm .AND. .NOT. lk_zdfkpp )   & 
    136136         &               CALL zdf_ddm( kstp )         ! double diffusive mixing 
    137           
     137 
    138138                         CALL zdf_mxl( kstp )         ! mixed layer depth 
    139139 
     
    142142      IF( lrst_oce .AND. lk_zdfgls )   CALL gls_rst( kstp, 'WRITE' ) 
    143143      ! 
    144       !  LATERAL  PHYSICS  
     144      !  LATERAL  PHYSICS 
    145145      ! 
    146146      IF( lk_ldfslp ) THEN                            ! slope of lateral mixing 
     
    211211         IF( ln_zps      )   CALL zps_hde( kstp, jpts, tsa, gtsu, gtsv,  &    ! zps: time filtered hor. derivative 
    212212            &                                          rhd, gru , grv  )      ! of t, s, rd at the last ocean level 
    213           
     213 
    214214      ELSE                                                  ! centered hpg  (eos then time stepping) 
    215215                             CALL eos    ( tsn, rhd, rhop )      ! now in situ density for hpg computation 
     
    218218         IF( ln_zdfnpc   )   CALL tra_npc( kstp )                ! update after fields by non-penetrative convection 
    219219                             CALL tra_nxt( kstp )                ! tracer fields at next time step 
    220       ENDIF  
     220      ENDIF 
    221221 
    222222      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     
    228228      IF(  ln_asmiau .AND. & 
    229229         & ln_dyninc       )   CALL dyn_asm_inc( kstp )     ! apply dynamics assimilation increment 
     230      IF( ln_bkgwri )          CALL asm_bkg_wri( kstp )     ! output background fields 
    230231      IF( ln_neptsimp )        CALL dyn_nept_cor( kstp )    ! subtract Neptune velocities (simplified) 
    231232      IF( lk_bdy           )   CALL bdy_dyn3d_dmp(kstp )    ! bdy damping trends 
     
    238239#endif 
    239240                               CALL dyn_hpg( kstp )         ! horizontal gradient of Hydrostatic pressure 
    240                                CALL dyn_bfr( kstp )         ! bottom friction    
     241                               CALL dyn_bfr( kstp )         ! bottom friction 
    241242                               CALL dyn_zdf( kstp )         ! vertical diffusion 
    242243                               CALL dyn_spg( kstp, indic )  ! surface pressure gradient 
     
    263264      ! Trends                              (ua, va, tsa used as workspace) 
    264265      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 
    265       IF( nstop == 0 ) THEN                          
    266          IF( lk_trddyn     )   CALL trd_dwr( kstp )         ! trends: dynamics  
     266      IF( nstop == 0 ) THEN 
     267         IF( lk_trddyn     )   CALL trd_dwr( kstp )         ! trends: dynamics 
    267268         IF( lk_trdtra     )   CALL trd_twr( kstp )         ! trends: active tracers 
    268          IF( lk_trdmld     )   CALL trd_mld( kstp )         ! trends: Mixed-layer  
     269         IF( lk_trdmld     )   CALL trd_mld( kstp )         ! trends: Mixed-layer 
    269270         IF( lk_trdvor     )   CALL trd_vor( kstp )         ! trends: vorticity budget 
    270271      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.