fastscape-lem / fastscape

A fast, versatile and user-friendly landscape evolution model
https://fastscape.readthedocs.io
BSD 3-Clause "New" or "Revised" License
53 stars 12 forks source link

FlowAccumulator: add an area on-demand variable #25

Open benbovy opened 2 years ago

benbovy commented 2 years ago

It might be useful to save drainage area as an model output diagnostic, even though an alternative method (e.g., using non-uniform surface runoff) used for computing flow accumulation.

However, it's difficult (not possible) to use both the DrainageArea process and another FlowAccumulator subclass in the same model.

Drainage area should be thus implemented in FlowAccumulator as an on-demand variable, so that it is available in all FlowAccumulator subclasses.