source: trunk/LMDZ.MARS/libf/phymars/paleoclimate_mod.F90 @ 3599

Last change on this file since 3599 was 3582, checked in by jbclement, 12 days ago

Mars PCM:

  • Correction of r3581: the key-words to get 'albedo_perennialco2(1:2)" from the "callphys.def" are now 'albedo_perennialco2_north' and 'albedo_perennialco2_south'.
  • Moving 'albedo_perennialco2' from the 'paleoclimate' module to the 'surfdat_h' module.

JBC

File size: 1.9 KB
Line 
1MODULE paleoclimate_mod
2!=======================================================================
3!   subject: Module dedicated to paleoclimates studies
4!   --------
5!
6!   author: LL, 06/2023
7!   ------
8!
9!=======================================================================
10
11implicit none
12
13logical :: paleoclimate ! False by default, is activate  for paleoclimates specific processes (e.g., lag layer) is initialized in conf_phys
14
15!$OMP THREADPRIVATE(paleoclimate)
16    real,    allocatable, dimension(:,:) :: h2o_ice_depth         ! Thickness of the lag before H2O ice [m]
17    real,    allocatable, dimension(:,:) :: lag_co2_ice           ! Thickness of the lag before CO2 ice [m]
18    real,    allocatable, dimension(:,:) :: d_coef                ! Diffusion coefficent
19    logical                              :: lag_layer             ! Does lag layer is present?
20    logical                              :: include_waterbuoyancy ! Include the effect of water buoyancy when computing the sublimation of water ice ?
21!$OMP THREADPRIVATE(h2o_ice_depth,lag_co2_ice,d_coef,lag_layer,include_waterbuoyancy)
22
23!=======================================================================
24contains
25!=======================================================================
26
27SUBROUTINE ini_paleoclimate_h(ngrid,nslope)
28
29implicit none
30
31integer, intent(in) :: ngrid  ! number of atmospheric columns
32integer, intent(in) :: nslope ! number of slope within a mesh
33
34allocate(h2o_ice_depth(ngrid,nslope))
35allocate(lag_co2_ice(ngrid,nslope))
36allocate(d_coef(ngrid,nslope))
37
38END SUBROUTINE ini_paleoclimate_h
39
40!=======================================================================
41SUBROUTINE end_paleoclimate_h
42
43implicit none
44
45if (allocated(d_coef)) deallocate(d_coef)
46if (allocated(h2o_ice_depth)) deallocate(h2o_ice_depth)
47if (allocated(lag_co2_ice)) deallocate(lag_co2_ice)
48
49END SUBROUTINE end_paleoclimate_h
50
51END MODULE paleoclimate_mod
Note: See TracBrowser for help on using the repository browser.