Changeset 5208 for branches/2014/dev_r4650_UKMO11_restart_functionality/NEMOGCM/NEMO/LIM_SRC_3/limthd_ent.F90
- Timestamp:
- 2015-04-13T15:08:59+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2014/dev_r4650_UKMO11_restart_functionality/NEMOGCM/NEMO/LIM_SRC_3/limthd_ent.F90
r4688 r5208 38 38 PUBLIC lim_thd_ent ! called by limthd and limthd_lac 39 39 40 REAL(wp) :: epsi20 = 1.e-20 ! constant values41 REAL(wp) :: epsi10 = 1.e-10 ! constant values42 43 40 !!---------------------------------------------------------------------- 44 41 !! NEMO/LIM3 4.0 , UCL - NEMO Consortium (2011) … … 79 76 INTEGER :: ji ! dummy loop indices 80 77 INTEGER :: jk0, jk1 ! old/new layer indices 81 REAL(wp) :: zswitch82 78 ! 83 79 REAL(wp), POINTER, DIMENSION(:,:) :: zqh_cum0, zh_cum0 ! old cumulative enthlapies and layers interfaces … … 137 133 DO jk1 = 1, nlay_i 138 134 DO ji = kideb, kiut 139 zswitch = 1._wp - MAX( 0._wp , SIGN( 1._wp , - zhnew(ji) + epsi10 ) )140 qnew(ji,jk1) = zswitch * ( zqh_cum1(ji,jk1) - zqh_cum1(ji,jk1-1) ) / MAX( zhnew(ji), epsi10 )135 rswitch = 1._wp - MAX( 0._wp , SIGN( 1._wp , - zhnew(ji) + epsi10 ) ) 136 qnew(ji,jk1) = rswitch * ( zqh_cum1(ji,jk1) - zqh_cum1(ji,jk1-1) ) / MAX( zhnew(ji), epsi10 ) 141 137 ENDDO 142 138 ENDDO … … 146 142 ! then we should not (* a_i) again but not important since this is just to check that remap error is ~0 147 143 DO ji = kideb, kiut 148 hfx_err_rem_1d(ji) = hfx_err_rem_1d(ji) + a_i_ b(ji) * r1_rdtice * &144 hfx_err_rem_1d(ji) = hfx_err_rem_1d(ji) + a_i_1d(ji) * r1_rdtice * & 149 145 & ( SUM( qnew(ji,1:nlay_i) ) * zhnew(ji) - SUM( qh_i_old(ji,0:nlay_i+1) ) ) 150 146 END DO
Note: See TracChangeset
for help on using the changeset viewer.