- Timestamp:
- 2018-11-07T18:25:49+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2018/dev_r9866_HPC_03_globcom/src/ICE/iceistate.F90
- Property svn:keywords set to Id
r9656 r10288 63 63 !!---------------------------------------------------------------------- 64 64 !! NEMO/ICE 4.0 , NEMO Consortium (2018) 65 !! $Id : iceistate.F90 8378 2017-07-26 13:55:59Z clem$66 !! Software governed by the CeCILL licen ce (modipsl/doc/NEMO_CeCILL.txt)65 !! $Id$ 66 !! Software governed by the CeCILL license (see ./LICENSE) 67 67 !!---------------------------------------------------------------------- 68 68 CONTAINS … … 295 295 ! In case snow load is in excess that would lead to transformation from snow to ice 296 296 ! Then, transfer the snow excess into the ice (different from icethd_dh) 297 zdh = MAX( 0._wp, ( rhos n * h_s(ji,jj,jl) + ( rhoic- rau0 ) * h_i(ji,jj,jl) ) * r1_rau0 )297 zdh = MAX( 0._wp, ( rhos * h_s(ji,jj,jl) + ( rhoi - rau0 ) * h_i(ji,jj,jl) ) * r1_rau0 ) 298 298 ! recompute h_i, h_s avoiding out of bounds values 299 299 h_i(ji,jj,jl) = MIN( hi_max(jl), h_i(ji,jj,jl) + zdh ) 300 h_s(ji,jj,jl) = MAX( 0._wp, h_s(ji,jj,jl) - zdh * rhoi c * r1_rhosn)300 h_s(ji,jj,jl) = MAX( 0._wp, h_s(ji,jj,jl) - zdh * rhoi * r1_rhos ) 301 301 ! 302 302 ! ice volume, salt content, age content … … 321 321 t_s(ji,jj,jk,jl) = zswitch(ji,jj) * ztm_i_ini(ji,jj) + ( 1._wp - zswitch(ji,jj) ) * rt0 322 322 ! Snow energy of melting 323 e_s(ji,jj,jk,jl) = zswitch(ji,jj) * rhos n * ( cpic * ( rt0 - t_s(ji,jj,jk,jl) ) + lfus )323 e_s(ji,jj,jk,jl) = zswitch(ji,jj) * rhos * ( rcpi * ( rt0 - t_s(ji,jj,jk,jl) ) + rLfus ) 324 324 ! 325 325 ! Mutliply by volume, and divide by number of layers to get heat content in J/m2 … … 337 337 t_i (ji,jj,jk,jl) = zswitch(ji,jj) * ztm_i_ini(ji,jj) + ( 1._wp - zswitch(ji,jj) ) * rt0 338 338 sz_i(ji,jj,jk,jl) = zswitch(ji,jj) * zsm_i_ini(ji,jj) + ( 1._wp - zswitch(ji,jj) ) * rn_simin 339 ztmelts = - tmut * sz_i(ji,jj,jk,jl) + rt0 !Melting temperature in K339 ztmelts = - rTmlt * sz_i(ji,jj,jk,jl) + rt0 !Melting temperature in K 340 340 ! 341 341 ! heat content per unit volume 342 e_i(ji,jj,jk,jl) = zswitch(ji,jj) * rhoi c * ( cpic * ( ztmelts - t_i(ji,jj,jk,jl) )&343 & + lfus * ( 1._wp - (ztmelts-rt0) / MIN( (t_i(ji,jj,jk,jl)-rt0) , -epsi20 ) ) &342 e_i(ji,jj,jk,jl) = zswitch(ji,jj) * rhoi * ( rcpi * ( ztmelts - t_i(ji,jj,jk,jl) ) & 343 & + rLfus * ( 1._wp - (ztmelts-rt0) / MIN( (t_i(ji,jj,jk,jl)-rt0) , -epsi20 ) ) & 344 344 & - rcp * ( ztmelts - rt0 ) ) 345 345 ! … … 410 410 ! 5) Snow-ice mass (case ice is fully embedded) 411 411 !---------------------------------------------- 412 snwice_mass (:,:) = tmask(:,:,1) * SUM( rhos n * v_s(:,:,:) + rhoic* v_i(:,:,:), dim=3 ) ! snow+ice mass412 snwice_mass (:,:) = tmask(:,:,1) * SUM( rhos * v_s(:,:,:) + rhoi * v_i(:,:,:), dim=3 ) ! snow+ice mass 413 413 snwice_mass_b(:,:) = snwice_mass(:,:) 414 414 !
Note: See TracChangeset
for help on using the changeset viewer.