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 6101 for branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/OPA_SRC/step.F90 – NEMO

Ignore:
Timestamp:
2015-12-17T16:48:41+01:00 (8 years ago)
Author:
cbricaud
Message:

correction of bugs from last update and improvments for CRS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/OPA_SRC/step.F90

    r5602 r6101  
    3333   USE step_oce         ! time stepping definition modules 
    3434   USE iom 
    35    USE crs 
     35   use wrk_nemo 
    3636 
    3737   IMPLICIT NONE 
     
    7676      INTEGER ::   indic    ! error indicator if < 0 
    7777      INTEGER ::   kcall    ! optional integer argument (dom_vvl_sf_nxt) 
     78      REAL(wp), POINTER, DIMENSION(:,:,:) ::   zrhop,zrhd 
     79 
    7880      !! --------------------------------------------------------------------- 
    7981 
     
    117119      !<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 
    118120      !  THERMODYNAMICS 
    119                          !cbr not used CALL eos_rab( tsb, rab_b )       ! before local thermal/haline expension ratio at T-points 
    120                          !cbr not used CALL eos_rab( tsn, rab_n )       ! now    local thermal/haline expension ratio at T-points 
     121                         CALL eos_rab( tsb, rab_b )       ! before local thermal/haline expension ratio at T-points 
     122                         CALL eos_rab( tsn, rab_n )       ! now    local thermal/haline expension ratio at T-points 
    121123                         CALL bn2    ( tsb, rab_b, rn2b ) ! before Brunt-Vaisala frequency 
    122124                         CALL bn2    ( tsn, rab_n, rn2  ) ! now    Brunt-Vaisala frequency 
     
    169171                         CALL iom_put("rhd",rhd) 
    170172                         CALL iom_put("rn2b",rn2b) 
     173                         CALL iom_put("rn2",rn2) 
    171174                         CALL ldf_slp( kstp, rhd, rn2b )     ! before slope for Madec operator 
    172175         ENDIF 
     
    240243      IF( ln_crs     )      CALL crs_fld( kstp )         ! ocean model: online field coarsening & output 
    241244 
     245      CALL wrk_alloc( jpi, jpj, jpk, zrhop, zrhd ) 
     246      CALL eos( tsn, zrhd, zrhop, fsdept_n(:,:,:) )                 ! now in situ and potential density 
     247      zrhop(:,:,jpk) = 0._wp 
     248      CALL iom_put( 'rhop', zrhop ) 
     249 
     250      CALL wrk_dealloc( jpi, jpj, jpk, zrhop, zrhd ) 
     251 
    242252#if defined key_top 
    243253      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     
    247257                         CALL dom_grid_crs 
    248258 
    249                          CALL eos_rab_crs( tsn_crs, rab_crs_n )       ! now    local thermal/haline expension ratio at T-points 
    250                          CALL bn2_crs    ( tsn_crs, rab_crs_n, rb2_crs  ) ! now    Brunt-Vaisala frequency 
     259                         !CALL eos_rab_crs( tsn_crs, rab_crs_n )       ! now    local thermal/haline expension ratio at T-points 
     260                         !CALL bn2_crs    ( tsn_crs, rab_crs_n, rb2_crs  ) ! now    Brunt-Vaisala frequency 
    251261                         CALL eos_crs ( tsn_crs, rhd_crs, rhop_crs, gdept_crs(:,:,:) ) ! now in situ density for hpg computation 
     262                         CALL iom_put("rhop_crs",rhop_crs) 
     263                         CALL iom_put("rhd_crs",rhd_crs) 
    252264 
    253265         IF( ln_zps )    CALL zps_hde_crs( kstp, jpts, tsb_crs, gtsu_crs, gtsv_crs, rhd_crs, gru_crs, grv_crs ) 
     
    265277 
    266278      IF( ln_crs_top )   CALL dom_grid_glo 
     279 
    267280#endif 
    268281 
Note: See TracChangeset for help on using the changeset viewer.