Changeset 4180 for trunk/LMDZ.COMMON/libf/evolution/surf_ice.F90
- Timestamp:
- Apr 10, 2026, 7:17:55 PM (6 hours ago)
- File:
-
- 1 edited
-
trunk/LMDZ.COMMON/libf/evolution/surf_ice.F90 (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/surf_ice.F90
r4174 r4180 16 16 ! DEPENDENCIES 17 17 ! ------------ 18 use numerics, only: dp, qp, di, k4, minieps18 use numerics, only: dp, qp, di, k4, eps, tol 19 19 20 20 ! DECLARATION … … 30 30 integer(di), parameter :: WEIGHT_RESERVOIR = 5_di ! Weight by locally available H2O ice mass 31 31 integer(di), parameter :: WEIGHT_DIRECTION = 6_di ! Weight by directional capacity (up/down) 32 integer(di), private :: weight_method = WEIGHT_ DIRECTION! Default method for balancing32 integer(di), private :: weight_method = WEIGHT_COMBINED ! Default method for balancing 33 33 real(dp), parameter :: rho_co2ice = 1650._dp ! Density of CO2 ice [kg.m-3] 34 34 real(dp), parameter :: rho_h2oice = 920._dp ! Density of H2O ice [kg.m-3] … … 420 420 ! --------------- 421 421 integer(di), parameter :: max_iter = 50_di ! Maximum number of iterations for the balancing procedure 422 real(dp), parameter :: eps = 1.e-12_dp ! Small number to prevent division by zero in weights normalization423 real(dp), parameter :: tiny_corr = minieps ! Minimum correction to consider that progress is made in the balancing procedure424 422 integer(di) :: i, islope, iter 425 423 integer(di) :: method_used … … 556 554 Delta = Delta - Delta_used 557 555 558 if (abs(Delta_used) < tiny_corr) exit 556 ! Test if the balancing procedure progresses 557 if (abs(Delta_used) < tol) exit 559 558 end do 560 559
Note: See TracChangeset
for help on using the changeset viewer.
