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 11180 for NEMO/branches/UKMO/NEMO_4.0_surge/src/OCE/step.F90 – NEMO

Ignore:
Timestamp:
2019-06-25T18:50:27+02:00 (5 years ago)
Author:
clne
Message:

Initial commit of code for 2d (surge) work in NEMO4.
This is aiming to replicate the 3.6 version in branches/UKMO/dev_r5518_Surge_Modelling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/NEMO_4.0_surge/src/OCE/step.F90

    r10888 r11180  
    125125      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 
    126126      !  THERMODYNAMICS 
     127      IF ( .NOT. ln_2d ) THEN  
    127128                         CALL eos_rab( tsb, rab_b )       ! before local thermal/haline expension ratio at T-points 
    128129                         CALL eos_rab( tsn, rab_n )       ! now    local thermal/haline expension ratio at T-points 
    129130                         CALL bn2    ( tsb, rab_b, rn2b ) ! before Brunt-Vaisala frequency 
    130131                         CALL bn2    ( tsn, rab_n, rn2  ) ! now    Brunt-Vaisala frequency 
    131  
     132      ENDIF 
     133       
    132134      !  VERTICAL PHYSICS 
    133135                         CALL zdf_phy( kstp )         ! vertical physics update (top/bot drag, avt, avs, avm + MLD) 
     
    163165                            CALL wzv           ( kstp )  ! now cross-level velocity  
    164166      IF( ln_zad_Aimp )     CALL wAimp         ( kstp )  ! Adaptive-implicit vertical advection partitioning 
    165                             CALL eos    ( tsn, rhd, rhop, gdept_n(:,:,:) )  ! now in situ density for hpg computation 
     167      IF( .NOT. ln_2d )     CALL eos    ( tsn, rhd, rhop, gdept_n(:,:,:) )  ! now in situ density for hpg computation 
    166168                             
    167169!!jc: fs simplification 
     
    202204      ENDIF 
    203205       
    204                          CALL dyn_zdf       ( kstp )  ! vertical diffusion 
     206      IF( .NOT. ln_2d )     CALL dyn_zdf       ( kstp )  ! vertical diffusion 
    205207 
    206208      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     
    232234      ! Active tracers                               
    233235      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 
     236      IF (.NOT. ln_2d) THEN  ! No tracers in 2D mode 
    234237                         tsa(:,:,:,:) = 0._wp         ! set tracer trends to zero 
    235238 
     
    257260                         CALL tra_zdf       ( kstp )  ! vertical mixing and after tracer fields 
    258261      IF( ln_zdfnpc  )   CALL tra_npc       ( kstp )  ! update after fields by non-penetrative convection 
    259  
     262      ENDIF ! not ln_2d  
     263       
    260264      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    261265      ! Set boundary conditions and Swap 
     
    275279!!  
    276280!!jc2: dynnxt must be the latest call. e3t_b are indeed updated in that routine 
    277                          CALL tra_nxt       ( kstp )  ! finalize (bcs) tracer fields at next time step and swap 
     281      IF (.NOT. ln_2d)   CALL tra_nxt       ( kstp )  ! finalize (bcs) tracer fields at next time step and swap 
    278282                         CALL dyn_nxt       ( kstp )  ! finalize (bcs) velocities at next time step and swap (always called after tra_nxt) 
    279283                         CALL ssh_swp       ( kstp )  ! swap of sea surface height 
Note: See TracChangeset for help on using the changeset viewer.