source: trunk/LMDZ.COMMON/libf/evolution/interpol_TI_PEM2PCM_mod.F90 @ 3345

Last change on this file since 3345 was 3149, checked in by jbclement, 12 months ago

PEM:

  • Simplification of the algorithm managing the stopping criteria;
  • Complete rework of the ice management in the PEM (H2O & CO2);

    Subroutines to evolve the H2O and CO2 ice are now in the same module "evol_ice_mod.F90".
    Tendencies are computed from the variation of "ice + frost" between the 2 PCM runs.
    Evolving ice in the PEM is now called 'h2o_ice' or 'co2_ice' (not anymore in 'qsurf' and free of 'water_reservoir').
    Default value 'ini_h2o_bigreservoir' (= 10 m) initializes the H2O ice of the first PEM run where there is 'watercap'. For the next PEM runs, initialization is done with the value kept in "startpem.nc". CO2 ice is taken from 'perennial_co2ice' of the PCM (paleoclimate flag must be true).
    Simplification of the condition to compute the surface ice cover needed for the stopping criteria.
    Frost ('qsurf') is not evolved by the PEM and given back to the PCM.
    New default threshold value 'inf_h2oice_threshold' (= 2 m) to decide at the end of the PEM run if the H2O ice should be 'watercap' or not for the next PCM runs. If H2O ice cannot be 'watercap', then the remaining H2O ice is transferred to the frost ('qsurf').

  • Renaming of variables/subroutines for clarity;
  • Some cleanings throughout the code;
  • Small updates in files of the deftank.

JBC

File size: 1.4 KB
Line 
1MODULE interpol_TI_PEM2PCM_mod
2
3implicit none
4
5!=======================================================================
6contains
7!=======================================================================
8
9SUBROUTINE interpol_TI_PEM2PCM(ngrid,nslope,nsoil_PEM,nsoil_PCM,TI_PEM,TI_PCM)
10
11!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12!!!
13!!! Purpose: Transfer the thermal inertia from the PEM vertical grid to the PCM vertical grid
14!!!
15!!!
16!!! Author: LL
17!!!
18!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
19
20implicit none
21
22!======================================================================
23!  arguments
24!  ---------
25!  inputs:
26integer,                                 intent(in) :: ngrid     ! # of horizontal grid points
27integer,                                 intent(in) :: nslope    ! # of subslope wihtin the mesh
28integer,                                 intent(in) :: nsoil_PEM ! # of soil layers in the PEM
29integer,                                 intent(in) :: nsoil_PCM ! # of soil layers in the GCM
30real, dimension(ngrid,nsoil_PEM,nslope), intent(in) :: TI_PEM    ! Thermal inertia in the PEM vertical grid [J/m^2/K/s^{1/2}]
31
32real, dimension(ngrid,nsoil_PCM,nslope), intent(inout) :: TI_PCM ! Thermal inertia in the PCM vertical grid [J/m^2/K/s^{1/2}]
33
34!----- Code
35TI_PCM = TI_PEM(:,:nsoil_PCM,:)
36
37END SUBROUTINE interpol_TI_PEM2PCM
38
39END MODULE interpol_TI_PEM2PCM_mod
Note: See TracBrowser for help on using the repository browser.