Changeset 9944 for NEMO/trunk/tests/ICEDYN/MY_SRC/usrdef_sbc.F90
- Timestamp:
- 2018-07-13T16:33:14+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/trunk/tests/ICEDYN/MY_SRC/usrdef_sbc.F90
r9789 r9944 132 132 emp_oce (:,:) = emp_oce(:,:) - sprecip(:,:) * (1._wp - zsnw(:,:) ) 133 133 qevap_ice(:,:,:) = 0._wp 134 qprec_ice(:,:) = rhos n * ( sst_m(:,:) * cpic - lfus ) * tmask(:,:,1) ! in J/m3134 qprec_ice(:,:) = rhos * ( sst_m(:,:) * rcpi - rLfus ) * tmask(:,:,1) ! in J/m3 135 135 qemp_oce (:,:) = - emp_oce(:,:) * sst_m(:,:) * rcp 136 qemp_ice (:,:) = sprecip(:,:) * zsnw * ( sst_m(:,:) * cpic - lfus ) * tmask(:,:,1) ! solid precip (only)136 qemp_ice (:,:) = sprecip(:,:) * zsnw * ( sst_m(:,:) * rcpi - rLfus ) * tmask(:,:,1) ! solid precip (only) 137 137 138 138 ! total fluxes … … 146 146 ! 147 147 WHERE ( phs(:,:,:) <= 0._wp .AND. phi(:,:,:) < 0.1_wp ) ! linear decrease from hi=0 to 10cm 148 q sr_ice_tr(:,:,:) = qsr_ice(:,:,:) * ( zfr1 + zfr2 * ( 1._wp - phi(:,:,:) * 10._wp ) )148 qtr_ice_top(:,:,:) = qsr_ice(:,:,:) * ( zfr1 + zfr2 * ( 1._wp - phi(:,:,:) * 10._wp ) ) 149 149 ELSEWHERE( phs(:,:,:) <= 0._wp .AND. phi(:,:,:) >= 0.1_wp ) ! constant (zfr1) when hi>10cm 150 q sr_ice_tr(:,:,:) = qsr_ice(:,:,:) * zfr1150 qtr_ice_top(:,:,:) = qsr_ice(:,:,:) * zfr1 151 151 ELSEWHERE ! zero when hs>0 152 q sr_ice_tr(:,:,:) = 0._wp152 qtr_ice_top(:,:,:) = 0._wp 153 153 END WHERE 154 154
Note: See TracChangeset
for help on using the changeset viewer.