Last change
on this file since 3296 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.2 KB
|
Line | |
---|
1 | MODULE compute_tend_mod |
---|
2 | |
---|
3 | implicit none |
---|
4 | |
---|
5 | !======================================================================= |
---|
6 | contains |
---|
7 | !======================================================================= |
---|
8 | |
---|
9 | SUBROUTINE compute_tend(ngrid,nslope,min_ice,tendencies_ice) |
---|
10 | |
---|
11 | implicit none |
---|
12 | |
---|
13 | !======================================================================= |
---|
14 | ! |
---|
15 | ! Compute the tendencies of the evolution of water ice over the years |
---|
16 | ! |
---|
17 | !======================================================================= |
---|
18 | |
---|
19 | ! arguments: |
---|
20 | ! ---------- |
---|
21 | ! INPUT |
---|
22 | integer, intent(in) :: ngrid ! # of grid points |
---|
23 | integer, intent(in) :: nslope ! # of subslopes |
---|
24 | real, dimension(ngrid,nslope,2), intent(in) :: min_ice ! Minima of ice at each point for the PCM years |
---|
25 | |
---|
26 | ! OUTPUT |
---|
27 | real, dimension(ngrid,nslope), intent(out) :: tendencies_ice ! Difference between the minima = evolution of perennial ice |
---|
28 | !======================================================================= |
---|
29 | ! We compute the difference |
---|
30 | tendencies_ice = min_ice(:,:,2) - min_ice(:,:,1) |
---|
31 | |
---|
32 | ! If the difference is too small, then there is no evolution |
---|
33 | where (abs(tendencies_ice) < 1.e-10) tendencies_ice = 0. |
---|
34 | |
---|
35 | END SUBROUTINE compute_tend |
---|
36 | |
---|
37 | END MODULE compute_tend_mod |
---|
Note: See
TracBrowser
for help on using the repository browser.