Merged with trunk and solved mass balance problem. Now it works with ERR_ACT=1: tested in 1-pixel simulation for 50 years.