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

Ignore:
Timestamp:
2013-04-09T18:34:38+02:00 (11 years ago)
Author:
acc
Message:

Branch 2013/dev_r3858_NOC_ZTC, #863. Nearly complete port of 2011/dev_r2739_LOCEAN8_ZTC development branch into v3.5aplha base. Compiles and runs but currently unstable after 8 timesteps with ORCA2_LIM reference configuration.

File:
1 edited

Legend:

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

    r3769 r3865  
    9797 
    9898      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    99       !  Ocean dynamics : ssh, wn, hdiv, rot                                 ! 
    100       !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 
    101                          CALL ssh_wzv( kstp )         ! after ssh & vertical velocity 
     99      !  Ocean dynamics : hdiv, rot, ssh, e3, wn 
     100      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 
     101                         CALL ssh_nxt       ( kstp )  ! after ssh 
     102      IF( lk_vvl     )   CALL dom_vvl_sf_nxt( kstp )  ! after vertical scale factors 
     103                         CALL wzv           ( kstp )  ! now cross-level velocity 
    102104 
    103105      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     
    139141      ! 
    140142      IF( lk_ldfslp ) THEN                            ! slope of lateral mixing 
    141                          CALL eos( tsb, rhd )                ! before in situ density 
     143                         CALL eos( tsb, rhd, gdept_0(:,:,:) )             ! before in situ density 
    142144         IF( ln_zps )    CALL zps_hde( kstp, jpts, tsb, gtsu, gtsv,  &    ! Partial steps: before horizontal gradient 
    143145            &                                      rhd, gru , grv  )      ! of t, s, rd at the last ocean level 
     
    202204         IF( ln_zdfnpc   )   CALL tra_npc( kstp )                ! update after fields by non-penetrative convection 
    203205                             CALL tra_nxt( kstp )                ! tracer fields at next time step 
    204                              CALL eos    ( tsa, rhd, rhop )      ! Time-filtered in situ density for hpg computation 
     206                             CALL eos    ( tsa, rhd, rhop, fsdept_n(:,:,:) )  ! Time-filtered in situ density for hpg computation 
    205207         IF( ln_zps      )   CALL zps_hde( kstp, jpts, tsa, gtsu, gtsv,  &    ! zps: time filtered hor. derivative 
    206208            &                                          rhd, gru , grv  )      ! of t, s, rd at the last ocean level 
    207209 
    208210      ELSE                                                  ! centered hpg  (eos then time stepping) 
    209                              CALL eos    ( tsn, rhd, rhop )      ! now in situ density for hpg computation 
     211                             CALL eos    ( tsn, rhd, rhop, fsdept_n(:,:,:) )  ! now in situ density for hpg computation 
    210212         IF( ln_zps      )   CALL zps_hde( kstp, jpts, tsn, gtsu, gtsv,  &    ! zps: now hor. derivative 
    211213            &                                          rhd, gru , grv  )      ! of t, s, rd at the last ocean level 
     
    238240                               CALL dyn_nxt( kstp )         ! lateral velocity at next time step 
    239241 
    240                                CALL ssh_nxt( kstp )         ! sea surface height at next time step 
     242                               CALL ssh_swp( kstp )         ! swap of sea surface height 
     243      IF( lk_vvl           )   CALL dom_vvl_sf_swp( kstp )  ! swap of vertical scale factors 
    241244 
    242245      IF( ln_diahsb        )   CALL dia_hsb( kstp )         ! - ML - global conservation diagnostics 
Note: See TracChangeset for help on using the changeset viewer.