cryotools / cosipy

Coupled snowpack and ice surface energy and mass balance model in Python
GNU General Public License v3.0
53 stars 31 forks source link

Dynamic tolerance for layer merging #39

Open MatteaE opened 3 years ago

MatteaE commented 3 years ago

For some model runs (especially on systems with limited memory/power) it can be hard to find a proper value for max_layers.

It would be very convenient if the model upon reaching the max_layers threshold could increase the merging thresholds (with a warning), to remain within the max_layers limit and still finish the simulation run.