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 5206 for branches/2015/dev_r5204_CNRS_PISCES_dcy/NEMOGCM/NEMO/LIM_SRC_3/limthd_dif.F90 – NEMO

Ignore:
Timestamp:
2015-04-13T12:13:10+02:00 (9 years ago)
Author:
cetlod
Message:

First improvment of diurnal cycle for passive tracers, see ticket #1484

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5204_CNRS_PISCES_dcy/NEMOGCM/NEMO/LIM_SRC_3/limthd_dif.F90

    r5202 r5206  
    126126      REAL(wp), POINTER, DIMENSION(:)     ::   zdifcase    ! case of the equation resolution (1->4) 
    127127      REAL(wp), POINTER, DIMENSION(:)     ::   zftrice     ! solar radiation transmitted through the ice 
     128      REAL(wp), POINTER, DIMENSION(:)     ::   zftrice_mean ! daily mean solar radiation transmitted through the ice 
    128129      REAL(wp), POINTER, DIMENSION(:)     ::   zihic 
    129130       
     
    174175      CALL wrk_alloc( jpij,nlay_i+3, zindterm, zindtbis, zdiagbis  ) 
    175176      CALL wrk_alloc( jpij,nlay_i+3,3, ztrid ) 
     177      IF( l_trcdm2dc )  CALL wrk_alloc( jpij, zftrice_mean ) 
    176178 
    177179      CALL wrk_alloc( jpij, zdq, zq_ini, zhfx_err ) 
     
    249251      END DO 
    250252 
     253      IF( l_trcdm2dc ) THEN 
     254         DO ji = kideb , kiut 
     255            zftrice_mean(ji) =  qsr_ice_mean_1d(ji) * i0(ji) ! Solar radiation transmitted below the surface layer 
     256         END DO 
     257      ENDIF 
     258 
    251259      !--------------------------------------------------------- 
    252260      ! Transmission - absorption of solar radiation in the ice 
     
    282290         ftr_ice_1d(ji) = zradtr_i(ji,nlay_i)  
    283291      END DO 
     292 
     293 
     294      IF( l_trcdm2dc ) THEN 
     295         DO ji = kideb , kiut 
     296             ftr_ice_mean_1d(ji) =  ftr_ice_mean_1d(ji) &  
     297                 &                + a_i_1d(ji) * zftrice_mean(ji) & 
     298                 &                             * EXP( - rn_kappa_i * ( MAX ( 0._wp , h_i_1d(ji) ) ) ) & 
     299                                               * EXP( - zraext_s   * ( MAX ( 0._wp , h_s_1d(ji) ) ) ) 
     300         END DO 
     301      ENDIF 
    284302 
    285303      ! 
Note: See TracChangeset for help on using the changeset viewer.