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 5105 for branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/TOP_SRC/trcini.F90 – NEMO

Ignore:
Timestamp:
2015-02-24T15:46:25+01:00 (9 years ago)
Author:
cbricaud
Message:

bug correction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/TOP_SRC/trcini.F90

    r4990 r5105  
    2525   USE trcini_my_trc   ! MY_TRC   initialisation 
    2626   USE trcdta          ! initialisation from files 
    27    USE daymod          ! calendar manager 
    28    USE zpshde          ! partial step: hor. derivative   (zps_hde routine) 
     27   USE zpshde,ONLY: zps_hde    ! partial step: hor. derivative   (zps_hde routine) 
     28   USE zpshde_crs      ! partial step: hor. derivative   (zps_hde routine) 
    2929   USE prtctl_trc      ! Print control passive tracers (prt_ctl_trc_init routine) 
    3030   USE trcsub          ! variables to substep passive tracers 
    3131   USE lib_mpp         ! distribued memory computing library 
    32    USE sbc_oce 
     32   USE sbc_oce, ONLY : ltrcdm2dc 
     33   USE crs    , ONLY : ln_crs 
     34   USE dom_oce, ONLY : nn_cla 
    3335  
    3436   IMPLICIT NONE 
     
    143145  
    144146      tra(:,:,:,:) = 0._wp 
    145       IF( ln_zps .AND. .NOT. lk_c1d )   &              ! Partial steps: before horizontal gradient of passive 
    146         &    CALL zps_hde( nit000, jptra, trn, pgtu=gtru, pgtv=gtrv, sgtu=gtrui, sgtv=gtrvi )       ! tracers at the bottom ocean level 
    147  
     147      IF( ln_zps .AND. .NOT. lk_c1d )THEN              ! Partial steps: before horizontal gradient of passive 
     148         IF( ln_crs )  THEN 
     149            CALL zps_hde_crs( nit000, jptra, trn, gtru, gtrv ) 
     150         ELSE 
     151            CALL zps_hde( nit000, jptra, trn, pgtu=gtru, pgtv=gtrv, sgtu=gtrui, sgtv=gtrvi )! tracers at the bottom ocean level 
     152         ENDIF 
     153      ENDIF 
    148154      ! 
    149155      IF( nn_dttrc /= 1 )        CALL trc_sub_ini      ! Initialize variables for substepping passive tracers 
     
    188194      !!---------------------------------------------------------------------- 
    189195      USE trcadv        , ONLY:   trc_adv_alloc          ! TOP-related alloc routines... 
     196      USE trcadv_crs    , ONLY:   trc_adv_alloc_crs      ! TOP-related alloc routines.. 
    190197      USE trc           , ONLY:   trc_alloc 
    191198      USE trcnxt        , ONLY:   trc_nxt_alloc 
    192199      USE trczdf        , ONLY:   trc_zdf_alloc 
     200      USE trczdf_crs    , ONLY:   trc_zdf_alloc_crs 
    193201      USE trdtrc_oce    , ONLY:   trd_trc_oce_alloc 
    194202#if defined key_trdmxl_trc  
     
    200208      ! 
    201209      ierr =        trc_adv_alloc()          ! Start of TOP-related alloc routines... 
     210      ierr = ierr + trc_adv_alloc_crs() 
    202211      ierr = ierr + trc_alloc    () 
    203212      ierr = ierr + trc_nxt_alloc() 
    204213      ierr = ierr + trc_zdf_alloc() 
     214      ierr = ierr + trc_zdf_alloc_crs() 
    205215      ierr = ierr + trd_trc_oce_alloc() 
    206216#if defined key_trdmxl_trc  
Note: See TracChangeset for help on using the changeset viewer.