Skip to content

Commit

Permalink
Temporary avoid low CO2 error in stomatal cond
Browse files Browse the repository at this point in the history
  • Loading branch information
ed2014 committed Jan 24, 2024
1 parent 0241a58 commit 86eb47c
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 86eb47c

Please sign in to comment.