From 86eb47ce40c72ebdae0ef325bc9ce9d4396e6610 Mon Sep 17 00:00:00 2001 From: Edmar Teixeira Date: Wed, 24 Jan 2024 14:26:14 +1300 Subject: [PATCH] Temporary avoid low CO2 error in stomatal cond --- Models/Functions/SupplyFunctions/RUECO2Function.cs | 3 +-- .../SupplyFunctions/StomatalConductanceCO2Modifier.cs | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Models/Functions/SupplyFunctions/RUECO2Function.cs b/Models/Functions/SupplyFunctions/RUECO2Function.cs index 1772619b40..2208dda4ee 100644 --- a/Models/Functions/SupplyFunctions/RUECO2Function.cs +++ b/Models/Functions/SupplyFunctions/RUECO2Function.cs @@ -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 diff --git a/Models/Functions/SupplyFunctions/StomatalConductanceCO2Modifier.cs b/Models/Functions/SupplyFunctions/StomatalConductanceCO2Modifier.cs index 24f80d7dd7..239500c5ea 100644 --- a/Models/Functions/SupplyFunctions/StomatalConductanceCO2Modifier.cs +++ b/Models/Functions/SupplyFunctions/StomatalConductanceCO2Modifier.cs @@ -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