Changeset 13540 for NEMO/branches/2020/r12377_ticket2386/src/ICE/icestp.F90
- Timestamp:
- 2020-09-29T12:41:06+02:00 (4 years ago)
- Location:
- NEMO/branches/2020/r12377_ticket2386
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2020/r12377_ticket2386
- Property svn:externals
-
old new 3 3 ^/utils/build/mk@HEAD mk 4 4 ^/utils/tools@HEAD tools 5 ^/vendors/AGRIF/dev @HEADext/AGRIF5 ^/vendors/AGRIF/dev_r12970_AGRIF_CMEMS ext/AGRIF 6 6 ^/vendors/FCM@HEAD ext/FCM 7 7 ^/vendors/IOIPSL@HEAD ext/IOIPSL 8 8 9 9 # SETTE 10 ^/utils/CI/sette@ HEADsette10 ^/utils/CI/sette@13507 sette
-
- Property svn:externals
-
NEMO/branches/2020/r12377_ticket2386/src/ICE/icestp.F90
r12511 r13540 201 201 IF( lrst_ice ) CALL ice_rst_write( kt ) ! -- Ice restart file 202 202 ! 203 IF( ln_icectl ) CALL ice_ctl( kt ) ! -- alerts in case of model crash203 IF( ln_icectl ) CALL ice_ctl( kt ) ! -- Control checks 204 204 ! 205 205 ENDIF ! End sea-ice time step only … … 224 224 INTEGER, INTENT(in) :: Kbb, Kmm, Kaa 225 225 ! 226 INTEGER :: ji, jj,ierr226 INTEGER :: ierr 227 227 !!---------------------------------------------------------------------- 228 228 IF(lwp) WRITE(numout,*) … … 240 240 CALL par_init ! set some ice run parameters 241 241 ! 242 #if defined key_agrif 243 CALL Agrif_Declare_Var_ice ! " " " " " Sea ice 244 #endif 245 ! 242 246 ! ! Allocate the ice arrays (sbc_ice already allocated in sbc_init) 243 247 ierr = ice_alloc () ! ice variables … … 248 252 IF( ierr /= 0 ) CALL ctl_stop('STOP', 'ice_init : unable to allocate ice arrays') 249 253 ! 250 CALL ice_itd_init ! ice thickness distribution initialization251 !252 CALL ice_thd_init ! set ice thermodynics parameters (clem: important to call it first for melt ponds)253 !254 ! ! Initial sea-ice state255 IF( .NOT. ln_rstart ) THEN ! start from rest: sea-ice deduced from sst256 CALL ice_istate_init257 CALL ice_istate( nit000, Kbb, Kmm, Kaa )258 ELSE ! start from a restart file259 CALL ice_rst_read( Kbb, Kmm, Kaa )260 ENDIF261 CALL ice_var_glo2eqv262 CALL ice_var_agg(1)263 !264 CALL ice_sbc_init ! set ice-ocean and ice-atm. coupling parameters265 !266 CALL ice_dyn_init ! set ice dynamics parameters267 !268 CALL ice_update_init ! ice surface boundary condition269 !270 CALL ice_alb_init ! ice surface albedo271 !272 CALL ice_dia_init ! initialization for diags273 !274 fr_i (:,:) = at_i(:,:) ! initialisation of sea-ice fraction275 tn_ice(:,:,:) = t_su(:,:,:) ! initialisation of surface temp for coupled simu276 !277 254 ! ! set max concentration in both hemispheres 278 255 WHERE( gphit(:,:) > 0._wp ) ; rn_amax_2d(:,:) = rn_amax_n ! NH 279 256 ELSEWHERE ; rn_amax_2d(:,:) = rn_amax_s ! SH 280 257 END WHERE 281 258 ! 259 CALL ice_itd_init ! ice thickness distribution initialization 260 ! 261 CALL ice_thd_init ! set ice thermodynics parameters (clem: important to call it first for melt ponds) 262 ! 263 ! ! Initial sea-ice state 264 CALL ice_istate_init 265 IF ( ln_rstart .OR. nn_iceini_file == 2 ) THEN 266 CALL ice_rst_read( Kbb, Kmm, Kaa ) ! start from a restart file 267 ELSE 268 CALL ice_istate( nit000, Kbb, Kmm, Kaa ) ! start from rest or read a file 269 ENDIF 270 CALL ice_var_glo2eqv 271 CALL ice_var_agg(1) 272 ! 273 CALL ice_sbc_init ! set ice-ocean and ice-atm. coupling parameters 274 ! 275 CALL ice_dyn_init ! set ice dynamics parameters 276 ! 277 CALL ice_update_init ! ice surface boundary condition 278 ! 279 CALL ice_alb_init ! ice surface albedo 280 ! 281 CALL ice_dia_init ! initialization for diags 282 ! 283 fr_i (:,:) = at_i(:,:) ! initialisation of sea-ice fraction 284 tn_ice(:,:,:) = t_su(:,:,:) ! initialisation of surface temp for coupled simu 285 ! 282 286 IF( ln_rstart ) CALL iom_close( numrir ) ! close input ice restart file 283 287 ! … … 362 366 v_s_b (:,:,:) = v_s (:,:,:) ! snow volume 363 367 sv_i_b(:,:,:) = sv_i(:,:,:) ! salt content 364 oa_i_b(:,:,:) = oa_i(:,:,:) ! areal age content365 368 e_s_b (:,:,:,:) = e_s (:,:,:,:) ! snow thermal energy 366 369 e_i_b (:,:,:,:) = e_i (:,:,:,:) ! ice thermal energy … … 371 374 h_i_b(:,:,:) = 0._wp 372 375 h_s_b(:,:,:) = 0._wp 373 END WHERE374 375 WHERE( a_ip(:,:,:) >= epsi20 )376 h_ip_b(:,:,:) = v_ip(:,:,:) / a_ip(:,:,:) ! ice pond thickness377 ELSEWHERE378 h_ip_b(:,:,:) = 0._wp379 376 END WHERE 380 377 ! … … 420 417 hfx_res(:,:) = 0._wp ; hfx_sub(:,:) = 0._wp 421 418 hfx_spr(:,:) = 0._wp ; hfx_dif(:,:) = 0._wp 422 hfx_err_rem(:,:) = 0._wp423 419 hfx_err_dif(:,:) = 0._wp 424 420 wfx_err_sub(:,:) = 0._wp … … 441 437 diag_trp_ei(:,:) = 0._wp ; diag_trp_es(:,:) = 0._wp 442 438 diag_trp_sv(:,:) = 0._wp 443 439 444 440 END SUBROUTINE diag_set0 445 441
Note: See TracChangeset
for help on using the changeset viewer.