Cell_water_balance - PIK-LPJmL/LPJmL GitHub Wiki

Cell water balance

TOC

Description

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.

Flow-chart