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/TOP_SRC/trcini.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/TOP_SRC/trcini.F90

    r5602 r6101  
    2525   USE trcini_my_trc   ! MY_TRC   initialisation 
    2626   USE trcdta          ! initialisation from files 
    27    USE zpshde,ONLY: zps_hde    ! partial step: hor. derivative   (zps_hde routine) 
     27   USE zpshde,ONLY: zps_hde, zps_hde_isf    ! partial step: hor. derivative   (zps_hde routine) 
    2828   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, ONLY : ltrcdm2dc 
    3332   USE crs    , ONLY : ln_crs 
    34    USE dom_oce, ONLY : nn_cla 
     33   USE dom_oce, ONLY : nn_cla, ln_isfcav 
    3534   USE trcice          ! tracers in sea ice 
     35   USE sbc_oce 
    3636  
    3737   IMPLICIT NONE 
     
    148148  
    149149      tra(:,:,:,:) = 0._wp 
    150       IF( ln_zps .AND. .NOT. lk_c1d )THEN              ! Partial steps: before horizontal gradient of passive 
    151          IF( ln_crs )  THEN 
    152             CALL zps_hde_crs( nit000, jptra, trn, gtru, gtrv ) 
    153          ELSE 
    154             IF( ln_zps .AND. .NOT. lk_c1d .AND. .NOT. ln_isfcav )   &              ! Partial steps: before horizontal gradient of passive 
    155             &    CALL zps_hde    ( nit000, jptra, trn, gtru, gtrv  )  ! Partial steps: before horizontal gradient 
    156             IF( ln_zps .AND. .NOT. lk_c1d .AND.       ln_isfcav )   & 
    157             &    CALL zps_hde_isf( nit000, jptra, trn, pgtu=gtru, pgtv=gtrv, pgtui=gtrui, pgtvi=gtrvi )       ! tracers at the bottom ocean level 
    158          ENDIF 
     150      IF( ln_crs )  THEN 
     151         CALL zps_hde_crs( nit000, jptra, trn, gtru, gtrv ) 
     152      ELSE 
     153         IF( ln_zps .AND. .NOT. lk_c1d .AND. .NOT. ln_isfcav )   &              ! Partial steps: before horizontal gradient of passive 
     154         &    CALL zps_hde    ( nit000, jptra, trn, gtru, gtrv  )  ! Partial steps: before horizontal gradient 
     155         IF( ln_zps .AND. .NOT. lk_c1d .AND.       ln_isfcav )   & 
     156         &    CALL zps_hde_isf( nit000, jptra, trn, pgtu=gtru, pgtv=gtrv, pgtui=gtrui, pgtvi=gtrvi )       ! tracers at the bottom ocean level 
    159157      ENDIF 
    160158 
Note: See TracChangeset for help on using the changeset viewer.