Changeset 4110 for trunk/LMDZ.COMMON/libf/evolution/clim_state_init.F90
- Timestamp:
- Mar 9, 2026, 10:29:53 AM (4 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/clim_state_init.F90
r4090 r4110 48 48 use tracers, only: nq, qnames, set_q_PCM 49 49 use stoppage, only: stop_clean 50 use display, only: print_msg 50 use display, only: print_msg, LVL_NFO 51 51 52 52 ! DECLARATION … … 76 76 inquire(file = start_name,exist = here) 77 77 if (.not. here) call stop_clean(__FILE__,__LINE__,'cannot find required file "'//start_name//'"!',1) 78 call print_msg('> Reading "'//start_name//'"' )78 call print_msg('> Reading "'//start_name//'"',LVL_NFO) 79 79 call open_nc(start_name,'read') 80 80 … … 126 126 use stoppage, only: stop_clean 127 127 use config, only: read_callphys 128 use display, only: print_msg 128 use display, only: print_msg, LVL_NFO 129 129 130 130 ! DECLARATION … … 147 147 inquire(file = start1D_name,exist = here) 148 148 if (.not. here) call stop_clean(__FILE__,__LINE__,'cannot find required file "'//start1D_name//'"!',1) 149 call print_msg('> Reading "'//start1D_name//'"' )149 call print_msg('> Reading "'//start1D_name//'"',LVL_NFO) 150 150 open(newunit = funit,file = start1D_name,status = "old",action = "read",iostat = ierr) 151 151 if (ierr /= 0) call stop_clean(__FILE__,__LINE__,'error opening file "'//start1D_name//'"!',ierr) … … 201 201 use geometry, only: ngrid, nslope, nsoil_PCM 202 202 use stoppage, only: stop_clean 203 use config, only: read_control data203 use config, only: read_control_data 204 204 use slopes, only: set_def_slope_mean, set_subslope_dist, set_iflat 205 205 use surface, only: set_albedodat_PCM, set_albedo_PCM, set_emissivity_PCM … … 209 209 use surf_ice, only: set_is_h2o_perice_PCM, set_co2_perice_PCM 210 210 use soil, only: set_TI_PCM, set_inertiedat_PCM 211 use display, only: print_msg 211 use display, only: print_msg, LVL_NFO 212 212 213 213 ! DECLARATION … … 228 228 229 229 ! Allocate the array to store the variables 230 call print_msg('> Reading "'//startfi_name//'"' )230 call print_msg('> Reading "'//startfi_name//'"',LVL_NFO) 231 231 allocate(tmp1d(nslope + 1),tmp2d(ngrid,nslope)) 232 232 233 233 ! Get control data 234 call read_control data()234 call read_control_data() 235 235 236 236 ! Open … … 308 308 ! 309 309 ! DESCRIPTION 310 ! Read the file "startevo l.nc" which stores the PEM state.310 ! Read the file "startevo.nc" which stores the PEM state. 311 311 ! 312 312 ! AUTHORS & DATE … … 337 337 use slopes, only: subslope_dist, def_slope_mean 338 338 use maths, only: pi 339 use display, only: print_msg 339 use display, only: print_msg, LVL_WRN, LVL_NFO, LVL_ERR 340 340 use utility, only: int2str 341 341 … … 367 367 integer(di) :: i, islope, k, nb_str_max, nsoil_startpem 368 368 real(dp) :: delta ! Depth of the interface regolith/breccia, breccia/bedrock [m] 369 real(dp), dimension(ngrid,nsoil,nslope) :: TI_startpem ! Soil thermal inertia saved in the startevo l[SI]370 real(dp), dimension(ngrid,nsoil,nslope) :: tsoil_startpem ! Soil temperature saved in the startevo l[K]369 real(dp), dimension(ngrid,nsoil,nslope) :: TI_startpem ! Soil thermal inertia saved in the startevo [SI] 370 real(dp), dimension(ngrid,nsoil,nslope) :: tsoil_startpem ! Soil temperature saved in the startevo [K] 371 371 real(dp), dimension(:,:,:,:), allocatable :: layerings_array ! Array for layerings 372 372 … … 380 380 if (.not. here) then 381 381 ! It is possibly because it is the very first PEM run so everything needs to be initalized 382 call print_msg('> The file "'//startpem_name//'" was not found (possibly because this is the first PEM run)' )382 call print_msg('> The file "'//startpem_name//'" was not found (possibly because this is the first PEM run)',LVL_WRN) 383 383 384 384 ! H2O ice 385 call print_msg("'h2o_ice' is initialized with default value 'h2oice_huge_ini' where 'watercaptag' is true and where yearly minimum of frost can be considered as a huge reservoir ('threshold_h2oice_cap')." )385 call print_msg("'h2o_ice' is initialized with default value 'h2oice_huge_ini' where 'watercaptag' is true and where yearly minimum of frost can be considered as a huge reservoir ('threshold_h2oice_cap').",LVL_NFO) 386 386 h2o_ice(:,:) = 0._dp 387 387 do i = 1,ngrid … … 394 394 395 395 ! CO2 ice 396 call print_msg("'co2_ice' is initialized with 'perennial_co2ice' and yearly minimum of frost found in the PCM." )396 call print_msg("'co2_ice' is initialized with 'perennial_co2ice' and yearly minimum of frost found in the PCM.",LVL_NFO) 397 397 co2_ice(:,:) = co2_perice_PCM(:,:) + co2frost_PCM(:,:) - co2_frost4PCM(:,:) 398 398 … … 494 494 ! Layering 495 495 if (do_layering) then 496 call print_msg('layerings_map is initialized with sub-surface strata.' )497 call print_msg("Ice is added with 'h2oice_huge_ini' where 'watercaptag' is true and otherwise with 'perennial_co2ice' found in the PCM." )496 call print_msg('layerings_map is initialized with sub-surface strata.',LVL_NFO) 497 call print_msg("Ice is added with 'h2oice_huge_ini' where 'watercaptag' is true and otherwise with 'perennial_co2ice' found in the PCM.",LVL_NFO) 498 498 do i = 1,ngrid 499 499 if (is_h2o_perice_PCM(i)) then … … 516 516 ! If the file is present 517 517 ! ~~~~~~~~~~~~~~~~~~~~~~ 518 call print_msg('> Reading "'//startpem_name//'"' )518 call print_msg('> Reading "'//startpem_name//'"',LVL_NFO) 519 519 call open_nc(startpem_name,'read') 520 520 … … 531 531 call get_dim_nc('subsurface_layers',nsoil_startpem) 532 532 if (nsoil_startpem /= nsoil) then 533 call print_msg('nsoil (PEM) = '//int2str(nsoil)//' | nsoil ("'//startpem_name//'") = '//int2str(nsoil_startpem) )533 call print_msg('nsoil (PEM) = '//int2str(nsoil)//' | nsoil ("'//startpem_name//'") = '//int2str(nsoil_startpem),LVL_ERR) 534 534 call stop_clean(__FILE__,__LINE__,'nsoil defined in the PEM is different from the one read in "'//startpem_name//'"!',1) 535 535 end if
Note: See TracChangeset
for help on using the changeset viewer.
