- Timestamp:
- 2020-10-19T10:53:30+02:00 (4 years ago)
- Location:
- NEMO/branches/2020/dev_r13296_HPC-07_mocavero_mpi3/tests/BENCH/MY_SRC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2020/dev_r13296_HPC-07_mocavero_mpi3/tests/BENCH/MY_SRC/usrdef_istate.F90
r13295 r13632 95 95 pv( :,:,jpk ) = 0._wp 96 96 ! 97 #if defined key_mpi3 98 CALL lbc_lnk_nc_multi('usrdef_istate', pssh, 'T', 1. ) ! apply boundary conditions 99 CALL lbc_lnk_nc_multi('usrdef_istate', pts, 'T', 1. ) ! apply boundary conditions 100 CALL lbc_lnk_nc_multi('usrdef_istate', pu, 'U', -1. ) ! apply boundary conditions 101 CALL lbc_lnk_nc_multi('usrdef_istate', pv, 'V', -1. ) ! apply boundary conditions 102 #else 97 103 CALL lbc_lnk('usrdef_istate', pssh, 'T', 1. ) ! apply boundary conditions 98 104 CALL lbc_lnk('usrdef_istate', pts, 'T', 1. ) ! apply boundary conditions 99 105 CALL lbc_lnk('usrdef_istate', pu, 'U', -1. ) ! apply boundary conditions 100 106 CALL lbc_lnk('usrdef_istate', pv, 'V', -1. ) ! apply boundary conditions 107 #endif 101 108 102 109 END SUBROUTINE usr_def_istate -
NEMO/branches/2020/dev_r13296_HPC-07_mocavero_mpi3/tests/BENCH/MY_SRC/usrdef_sbc.F90
r13295 r13632 120 120 vtau_ice(:,:) = 0.1_wp + z2d(:,:) 121 121 122 #if defined key_mpi3 123 CALL lbc_lnk_nc_multi( 'usrdef_sbc', utau_ice, 'U', -1., vtau_ice, 'V', -1. ) 124 #else 122 125 CALL lbc_lnk_multi( 'usrdef_sbc', utau_ice, 'U', -1., vtau_ice, 'V', -1. ) 126 #endif 123 127 #endif 124 128 ! … … 137 141 REAL(wp), DIMENSION(:,:,:), INTENT(in) :: phi ! ice thickness 138 142 !! 139 REAL(wp) :: zfr1, zfr2 ! local variables140 143 REAL(wp), DIMENSION(jpi,jpj) :: zsnw ! snw distribution after wind blowing 141 144 !!--------------------------------------------------------------------- … … 172 175 qsr_tot (:,:) = at_i_b(:,:) * qsr_oce(:,:) + SUM( a_i_b(:,:,:) * qsr_ice(:,:,:), dim=3 ) 173 176 174 ! --- shortwave radiation transmitted below the surface (W/m2, see Grenfell Maykut 77) --- ! 175 zfr1 = ( 0.18 * ( 1.0 - cldf_ice ) + 0.35 * cldf_ice ) ! transmission when hi>10cm 176 zfr2 = ( 0.82 * ( 1.0 - cldf_ice ) + 0.65 * cldf_ice ) ! zfr2 such that zfr1 + zfr2 to equal 1 177 ! 178 WHERE ( phs(:,:,:) <= 0._wp .AND. phi(:,:,:) < 0.1_wp ) ! linear decrease from hi=0 to 10cm 179 qtr_ice_top(:,:,:) = qsr_ice(:,:,:) * ( zfr1 + zfr2 * ( 1._wp - phi(:,:,:) * 10._wp ) ) 180 ELSEWHERE( phs(:,:,:) <= 0._wp .AND. phi(:,:,:) >= 0.1_wp ) ! constant (zfr1) when hi>10cm 181 qtr_ice_top(:,:,:) = qsr_ice(:,:,:) * zfr1 182 ELSEWHERE ! zero when hs>0 183 qtr_ice_top(:,:,:) = 0._wp 184 END WHERE 177 ! --- shortwave radiation transmitted thru the surface scattering layer (W/m2) --- ! 178 qtr_ice_top(:,:,:) = 0._wp 179 185 180 #endif 186 181 -
NEMO/branches/2020/dev_r13296_HPC-07_mocavero_mpi3/tests/BENCH/MY_SRC/usrdef_zgr.F90
r13286 r13632 210 210 211 211 ! 212 #if defined key_mpi3 213 CALL lbc_lnk_nc_multi( 'usrdef_zgr', z2d, 'T', 1. ) ! set surrounding land to zero (here jperio=0 ==>> closed) 214 #else 212 215 CALL lbc_lnk( 'usrdef_zgr', z2d, 'T', 1. ) ! set surrounding land to zero (here jperio=0 ==>> closed) 216 #endif 213 217 ! 214 218 k_bot(:,:) = INT( z2d(:,:) ) ! =jpkm1 over the ocean point, =0 elsewhere
Note: See TracChangeset
for help on using the changeset viewer.