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 12178 for NEMO/branches/2019/dev_r11078_OSMOSIS_IMMERSE_Nurser/src/OCE/step.F90 – NEMO

Ignore:
Timestamp:
2019-12-11T12:02:38+01:00 (4 years ago)
Author:
agn
Message:

updated trunk to v 11653

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r11078_OSMOSIS_IMMERSE_Nurser/src/OCE/step.F90

    r11142 r12178  
    101101      IF( kstp == nit000 ) THEN                       ! initialize IOM context (must be done after nemo_init for AGRIF+XIOS+OASIS) 
    102102                             CALL iom_init(      cxios_context          )  ! for model grid (including passible AGRIF zoom) 
    103                              IF( ln_crs      )   CALL iom_init( TRIM(cxios_context)//"_crs" )  ! for coarse grid 
    104                              CALL dia_hth_init    ! extra ML depth diagnostics, thermocline depths 
     103         IF( ln_crs      )   CALL iom_init( TRIM(cxios_context)//"_crs" )  ! for coarse grid 
    105104      ENDIF 
    106105      IF( kstp /= nit000 )   CALL day( kstp )         ! Calendar (day was already called at nit000 in day_init) 
     
    113112      IF( ln_tide    )   CALL sbc_tide( kstp )                   ! update tide potential 
    114113      IF( ln_apr_dyn )   CALL sbc_apr ( kstp )                   ! atmospheric pressure (NB: call before bdy_dta which needs ssh_ib)  
    115       IF( ln_bdy     )   CALL bdy_dta ( kstp, time_offset=+1 )   ! update dynamic & tracer data at open boundaries 
     114      IF( ln_bdy     )   CALL bdy_dta ( kstp, kt_offset = +1 )   ! update dynamic & tracer data at open boundaries 
    116115                         CALL sbc     ( kstp )                   ! Sea Boundary Condition (including sea-ice) 
    117116 
     
    166165                            CALL eos    ( tsn, rhd, rhop, gdept_n(:,:,:) )  ! now in situ density for hpg computation 
    167166                             
    168 !!jc: fs simplification 
    169 !!jc: lines below are useless if ln_linssh=F. Keep them here (which maintains a bug if ln_linssh=T and ln_zps=T, cf ticket #1636)  
    170 !!                                         but ensures reproductible results 
    171 !!                                         with previous versions using split-explicit free surface           
    172             IF( ln_zps .AND. .NOT. ln_isfcav )                               & 
    173                &            CALL zps_hde    ( kstp, jpts, tsn, gtsu, gtsv,   &  ! Partial steps: before horizontal gradient 
    174                &                                          rhd, gru , grv     )  ! of t, s, rd at the last ocean level 
    175             IF( ln_zps .AND.       ln_isfcav )                                          & 
    176                &            CALL zps_hde_isf( kstp, jpts, tsn, gtsu, gtsv, gtui, gtvi,  &  ! Partial steps for top cell (ISF) 
    177                &                                          rhd, gru , grv , grui, grvi   )  ! of t, s, rd at the first ocean level 
    178 !!jc: fs simplification 
    179167                             
    180168                         ua(:,:,:) = 0._wp            ! set dynamics trends to zero 
     
    199187                            CALL div_hor    ( kstp )              ! Horizontal divergence  (2nd call in time-split case) 
    200188         IF(.NOT.ln_linssh) CALL dom_vvl_sf_nxt( kstp, kcall=2 )  ! after vertical scale factors (update depth average component) 
     189      ENDIF 
     190                         CALL dyn_zdf       ( kstp )  ! vertical diffusion 
     191 
     192      IF( ln_dynspg_ts ) THEN                          
    201193                            CALL wzv        ( kstp )              ! now cross-level velocity  
    202194         IF( ln_zad_Aimp )  CALL wAimp      ( kstp )  ! Adaptive-implicit vertical advection partitioning 
    203195      ENDIF 
    204        
    205                          CALL dyn_zdf       ( kstp )  ! vertical diffusion 
    206196 
    207197      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     
    213203      ! diagnostics and outputs 
    214204      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 
    215       IF( lk_floats  )   CALL flo_stp( kstp )         ! drifting Floats 
    216       IF( ln_diacfl  )   CALL dia_cfl( kstp )         ! Courant number diagnostics 
    217       IF( ll_diahth  )   CALL dia_hth( kstp )         ! Thermocline depth (20 degres isotherm depth) 
    218       IF( lk_diadct  )   CALL dia_dct( kstp )         ! Transports 
    219                          CALL dia_ar5( kstp )         ! ar5 diag 
    220       IF( lk_diaharm )   CALL dia_harm( kstp )        ! Tidal harmonic analysis 
     205      IF( ln_floats  )   CALL flo_stp ( kstp )        ! drifting Floats 
     206      IF( ln_diacfl  )   CALL dia_cfl ( kstp )        ! Courant number diagnostics 
     207      IF( lk_diahth  )   CALL dia_hth ( kstp )        ! Thermocline depth (20 degres isotherm depth) 
     208      IF( ln_diadct  )   CALL dia_dct ( kstp )        ! Transports 
     209                         CALL dia_ar5 ( kstp )        ! ar5 diag 
     210      IF( ln_diaharm )   CALL dia_harm( kstp )        ! Tidal harmonic analysis 
    221211                         CALL dia_wri ( kstp )        ! ocean model: outputs 
    222212      ! 
Note: See TracChangeset for help on using the changeset viewer.