Skip to content

Commit

Permalink
Merge pull request #39 from ed2014/hotfix/DeropapyCO2Test
Browse files Browse the repository at this point in the history
Temporary avoid low CO2 error in stomatal cond
  • Loading branch information
ed2014 authored Jan 24, 2024
2 parents 0241a58 + 86eb47c commit 1a08a8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Models/Functions/SupplyFunctions/RUECO2Function.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ public double Value(int arrayIndex = -1)
throw new Exception("Average daily temperature too high for RUE CO2 Function");

if (MetData.CO2 < 300)
// throw new Exception("CO2 concentration too low for RUE CO2 Function");
return 1.0; // Test with low CO2 data FIXME
throw new Exception("CO2 concentration too low for RUE CO2 Function");
else if (MetData.CO2 == 350)
return 1.0;
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public class StomatalConductanceCO2Modifier : Model, IFunction
public double Value(int arrayIndex = -1)
{
if (MetData.CO2 < 350)
return 1.0;
throw new Exception("CO2 concentration too low for Stomatal Conductance CO2 Function");
return 1.0; // FIXME: RUECO2 function uses 300 ppm threshold - we have 320 ppm in historical climate to run
// throw new Exception("CO2 concentration too low for Stomatal Conductance CO2 Function");
else if (MetData.CO2 == 350)
return 1.0;
else
Expand Down

0 comments on commit 1a08a8e

Please sign in to comment.