Changeset 8939 for branches/2017/dev_CNRS_2017/NEMOGCM/NEMO/OPA_SRC
- Timestamp:
- 2017-12-07T17:53:39+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2017/dev_CNRS_2017/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90
r8934 r8939 32 32 USE cpl_oasis3 ! OASIS3 coupling 33 33 USE geo2ocean ! 34 USE oce , ONLY : tsn, un, vn, sshn, ub, vb, sshb, fraqsr_1lev34 USE oce , ONLY : tsn, un, vn, sshn, ub, vb, sshb, fraqsr_1lev 35 35 USE ocealb ! 36 36 USE eosbn2 ! 37 USE sbcrnf , ONLY : l_rnfcpl38 USE sbcisf 37 USE sbcrnf , ONLY : l_rnfcpl 38 USE sbcisf , ONLY : l_isfcpl 39 39 #if defined key_cice 40 40 USE ice_domain_size, only: ncat … … 1243 1243 ! needed by Met Office 1244 1244 IF( srcv(jpr_ts_ice)%laction ) THEN 1245 DO jn = 1, jpl 1246 DO jj = 1, jpj 1247 DO ji = 1, jpi 1248 IF (frcv(jpr_ts_ice)%z3(ji,jj,jn) > 0.0) THEN 1249 tsfc_ice(ji,jj,jn) = 0.0 1250 ELSE IF (frcv(jpr_ts_ice)%z3(ji,jj,jn) < -60.0) THEN 1251 tsfc_ice(ji,jj,jn) = -60.0 1252 ELSE 1253 tsfc_ice(ji,jj,jn) = frcv(jpr_ts_ice)%z3(ji,jj,jn) 1254 ENDIF 1255 END DO 1256 END DO 1257 END DO 1245 WHERE ( frcv(jpr_ts_ice)%z3(:,:,:) > 0.0 ) ; tsfc_ice(:,:,:) = 0.0 1246 ELSEWHERE( frcv(jpr_ts_ice)%z3(:,:,:) < -60. ) ; tsfc_ice(:,:,:) = -60. 1247 ELSEWHERE ; tsfc_ice(:,:,:) = frcv(jpr_ts_ice)%z3(:,:,:) 1248 END WHERE 1258 1249 ENDIF 1259 1250 #endif … … 2066 2057 #if defined key_lim3 2067 2058 IF( ln_meto_cpl ) THEN 2068 ! 2069 SELECT CASE( TRIM( sn_rcv_iceflx%cldes ) ) ! topmelt and botmelt!2070 ! 2059 ! ! ========================= ! 2060 SELECT CASE( TRIM( sn_rcv_iceflx%cldes ) ) ! ice topmelt and botmelt ! 2061 ! ! ========================= ! 2071 2062 CASE ('coupled') 2072 2063 qml_ice(:,:,:) = frcv(jpr_topm)%z3(:,:,:) * a_i(:,:,:) … … 2186 2177 IF( ssnd(jps_tmix)%laction ) CALL cpl_snd( jps_tmix, isec, RESHAPE ( ztmp1, (/jpi,jpj,1/) ), info ) 2187 2178 ENDIF 2188 2179 ! 2180 ! ! ------------------------- ! 2181 ! ! 1st layer ice/snow temp. ! 2182 ! ! ------------------------- ! 2189 2183 #if defined key_lim3 2190 !!!!! Getting NEMO4-LIM working at Met Office 2191 ! Top layer ice temperature 2184 ! needed by Met Office 2192 2185 IF( ssnd(jps_ttilyr)%laction) THEN 2193 2186 SELECT CASE( sn_snd_ttilyr%cldes) … … 2198 2191 IF( ssnd(jps_ttilyr)%laction ) CALL cpl_snd( jps_ttilyr, isec, ztmp3, info ) 2199 2192 ENDIF 2200 !!!!!2201 2193 #endif 2202 2203 2194 ! ! ------------------------- ! 2204 2195 ! ! Albedo ! … … 2315 2306 2316 2307 #if defined key_lim3 2317 ! NEMO4 - Jules coupling - Met Office 2318 ! Send meltpond fields 2308 ! ! ------------------------- ! 2309 ! ! Ice melt ponds ! 2310 ! ! ------------------------- ! 2311 ! needed by Met Office 2319 2312 IF( ssnd(jps_a_p)%laction .OR. ssnd(jps_ht_p)%laction ) THEN 2320 2313 SELECT CASE( sn_snd_mpnd%cldes) … … 2331 2324 ztmp4(:,:,1) = ztmp4(:,:,1) + v_ip(:,:,jpl) 2332 2325 ENDDO 2333 CASE default ; CALL ctl_stop( 'sbc_cpl_mpd: wrong definition of sn_snd_mpnd%clcat' )2326 CASE default ; CALL ctl_stop( 'sbc_cpl_snd: wrong definition of sn_snd_mpnd%clcat' ) 2334 2327 END SELECT 2335 CASE ( 'default' ) ; CALL ctl_stop( 'sbc_cpl_mpd: wrong definition of sn_snd_mpnd%cldes' )2328 CASE default ; CALL ctl_stop( 'sbc_cpl_snd: wrong definition of sn_snd_mpnd%cldes' ) 2336 2329 END SELECT 2337 IF( ssnd(jps_a_p)%laction ) CALL cpl_snd( jps_a_p, isec, ztmp3, info )2330 IF( ssnd(jps_a_p)%laction ) CALL cpl_snd( jps_a_p , isec, ztmp3, info ) 2338 2331 IF( ssnd(jps_ht_p)%laction ) CALL cpl_snd( jps_ht_p, isec, ztmp4, info ) 2339 ! 2340 ! Send ice effective conductivity 2332 ENDIF 2333 ! 2334 ! ! ------------------------- ! 2335 ! ! Ice conductivity ! 2336 ! ! ------------------------- ! 2337 ! needed by Met Office 2338 IF( ssnd(jps_kice)%laction ) THEN 2341 2339 SELECT CASE( sn_snd_cond%cldes) 2342 2340 CASE( 'weighted ice' ) 2343 2341 SELECT CASE( sn_snd_cond%clcat ) 2344 2342 CASE( 'yes' ) 2345 2343 ztmp3(:,:,1:jpl) = cnd_ice(:,:,1:jpl) * a_i(:,:,1:jpl) 2346 2344 CASE( 'no' ) 2347 2345 ztmp3(:,:,:) = 0.0 … … 2349 2347 ztmp3(:,:,1) = ztmp3(:,:,1) + cnd_ice(:,:,jl) * a_i(:,:,jl) 2350 2348 ENDDO 2351 CASE default 2349 CASE default ; CALL ctl_stop( 'sbc_cpl_snd: wrong definition of sn_snd_cond%clcat' ) 2352 2350 END SELECT 2353 2351 CASE( 'ice only' ) 2354 2352 ztmp3(:,:,1:jpl) = cnd_ice(:,:,1:jpl) 2353 CASE default ; CALL ctl_stop( 'sbc_cpl_snd: wrong definition of sn_snd_cond%cldes' ) 2355 2354 END SELECT 2356 2355 IF( ssnd(jps_kice)%laction ) CALL cpl_snd( jps_kice, isec, ztmp3, info ) 2357 2356 ENDIF 2358 !2359 !!!!!2360 2357 #endif 2361 2358 … … 2682 2679 2683 2680 #if defined key_lim3 2684 ! NEMO4 - Jules coupling - Met Office 2681 ! ! ------------------------- ! 2682 ! ! Sea surface freezing temp ! 2683 ! ! ------------------------- ! 2684 ! needed by Met Office 2685 2685 CALL eos_fzp(tsn(:,:,1,jp_sal), sstfrz) 2686 2686 ztmp1(:,:) = sstfrz(:,:) + rt0
Note: See TracChangeset
for help on using the changeset viewer.