cell_water_balance - PIK-LPJmL/LPJmL GitHub Wiki
[[TOC]]
The cell water balance accounts for all water in- and out-flows for each
cell at the end of the year.
It is checked if the change in water pools (water that remains in the
cell, e.g. lakes, river, soil water) equals inflows (e.g. precipitation,
discharge from upstream cells) and outflows (e.g. transpiration,
evaporation, discharge to downstream cell). The balance (balanceW
) is
calculated in function check_fluxes, which is called in function
iterateyear or function iterateyear_river (if #define RIVER_ROUTING
).
If the setting #define RIVER_ROUTING
is not set, irrigation
withdrawals (mfout
) and and conv_losses
(mfin
) are not considered.
Monthly water fluxes are added to awater_flux
in function
update_monthly. The flow-chart below illustrates the cell water
balance.
![](https://github.com/PIK-LPJmL/LPJmL/wiki/cell_water_balance.png)