Changeset 3200 for trunk/LMDZ.MARS/libf
- Timestamp:
- Feb 2, 2024, 6:06:10 PM (11 months ago)
- Location:
- trunk/LMDZ.MARS/libf/phymars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/dyn1d/init_testphys1d_mod.F90
r3188 r3200 78 78 real, dimension(1), intent(out) :: latitude, longitude, cell_area 79 79 real, intent(out) :: atm_wat_profile, atm_wat_tau ! Force atmospheric water profiles 80 real, intent(out) :: CO2cond_ps ! Relaxation coefficient for psurf80 real, intent(out) :: CO2cond_ps ! Coefficient to control the surface pressure change 81 81 82 82 !======================================================================= … … 530 530 endif !(.not. therestartfi) 531 531 532 ! emissivity532 ! Emissivity 533 533 ! ---------- 534 534 if (.not. therestartfi) then -
trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F90
r3188 r3200 270 270 271 271 ! Increment tracers 272 q(1,:,:) = q(1,:,:) + dttestphys*dq(1,:,:) 272 if (abs(CO2cond_ps) < 1.e-10) then 273 do iq = 1,nq 274 if (iq == igcm_co2) cycle 275 q(1,:,iq) = q(1,:,iq) + dttestphys*dq(1,:,iq) 276 enddo 277 else 278 q = q + dttestphys*dq 279 endif 273 280 enddo ! End of time stepping loop (idt=1,ndt) 274 281 -
trunk/LMDZ.MARS/libf/phymars/paleoclimate_mod.F90
r3130 r3200 6 6 ! author: LL, 06/2023 7 7 ! ------ 8 ! 8 ! 9 9 !======================================================================= 10 10 11 IMPLICIT NONE 11 implicit none 12 12 13 LOGICAL, SAVE :: paleoclimate ! False by default, is activate for paleoclimates specific processes (e.g., lag layer) 14 ! is initialized in conf_phys 13 logical, save :: paleoclimate ! False by default, is activate for paleoclimates specific processes (e.g., lag layer) 14 ! is initialized in conf_phys 15 15 16 !$OMP THREADPRIVATE(paleoclimate) 16 17 real, save, allocatable :: h2o_ice_depth(:,:) ! Thickness of the lag before H2O ice [m] 18 real, save, allocatable :: lag_co2_ice(:,:) ! Thickness of the lag before CO2 ice [m] 19 real, save :: albedo_perennialco2 ! Albedo for perennial co2 ice [1] 20 real, save, allocatable :: d_coef(:,:) ! Diffusion coeficent 21 LOGICAL,SAVE :: lag_layer ! does lag layer is present? 17 real, save, allocatable, dimension(:,:) :: h2o_ice_depth ! Thickness of the lag before H2O ice [m] 18 real, save, allocatable, dimension(:,:) :: lag_co2_ice ! Thickness of the lag before CO2 ice [m] 19 real, save, allocatable, dimension(:,:) :: d_coef ! Diffusion coeficent 20 real, save :: albedo_perennialco2 ! Albedo for perennial co2 ice [1] 21 logical, save :: lag_layer ! Does lag layer is present? 22 22 !$OMP THREADPRIVATE(h2o_ice_depth,d_coef,lag_co2_ice,albedo_perennialco2) 23 23 24 CONTAINS 24 !======================================================================= 25 contains 26 !======================================================================= 25 27 28 SUBROUTINE ini_paleoclimate_h(ngrid,nslope) 26 29 27 subroutine ini_paleoclimate_h(ngrid,nslope) 30 implicit none 28 31 29 implicit none 30 integer,intent(in) :: ngrid ! number of atmospheric columns 31 integer,intent(in) :: nslope ! number of slope within a mesh 32 integer, intent(in) :: ngrid ! number of atmospheric columns 33 integer, intent(in) :: nslope ! number of slope within a mesh 32 34 33 allocate(h2o_ice_depth(ngrid,nslope)) 34 allocate(lag_co2_ice(ngrid,nslope)) 35 allocate(d_coef(ngrid,nslope)) 36 end subroutine ini_paleoclimate_h 35 allocate(h2o_ice_depth(ngrid,nslope)) 36 allocate(lag_co2_ice(ngrid,nslope)) 37 allocate(d_coef(ngrid,nslope)) 37 38 38 subroutine end_paleoclimate_h39 END SUBROUTINE ini_paleoclimate_h 39 40 40 implicit none 41 if (allocated(d_coef)) deallocate(d_coef) 42 if (allocated(h2o_ice_depth)) deallocate(h2o_ice_depth) 43 if (allocated(lag_co2_ice)) deallocate(lag_co2_ice) 44 end subroutine end_paleoclimate_h 41 !======================================================================= 42 SUBROUTINE end_paleoclimate_h 45 43 44 implicit none 46 45 47 END MODULE paleoclimate_mod 46 if (allocated(d_coef)) deallocate(d_coef) 47 if (allocated(h2o_ice_depth)) deallocate(h2o_ice_depth) 48 if (allocated(lag_co2_ice)) deallocate(lag_co2_ice) 49 50 END SUBROUTINE end_paleoclimate_h 51 52 END MODULE paleoclimate_mod
Note: See TracChangeset
for help on using the changeset viewer.