Commit f98cd2ba authored by jouke's avatar jouke
Browse files

Reducing messages about negative carbon availability coming from poor

estimates
parent 9862f73f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -105,7 +105,9 @@ void CarbonAvailableForGrowth::calculate(const Time &t,double &c){

    //check if respiration is higher than income rate
	if(c< 0)	{
		if(t>pSD->getStartTime()+1.){
		if(t>pSD->getStartTime()+1. && r3 < 1e-3) {
			//when r3 is positive, we are actually putting reserves in store
			//the store overestimated. It will be corrected in the next iteration.
			//ignore this message for the first day, as we are running on seed reserves anyway and the estimates are not good because carbon Income is 0.
			msg::warning("CarbonAvailableForGrowth:  negative values: carbon production lower than compulsory cost of respiration/exudates? Setting growth to 0, this will cause balance errors");
		}