diff --git a/.gitignore b/.gitignore index 1898019fba..2fa8287c37 100644 --- a/.gitignore +++ b/.gitignore @@ -63,3 +63,4 @@ launchSettings.json /testEnvironments.json .mono ApsimX.xml +Prototypes/Crop2ML/SoilTemp/SensitivityAnalysis/Outputs*/ diff --git a/Models/Functions/DivideFunction.cs b/Models/Functions/DivideFunction.cs index 01694207b7..6f105eb765 100644 --- a/Models/Functions/DivideFunction.cs +++ b/Models/Functions/DivideFunction.cs @@ -33,7 +33,7 @@ public double Value(int arrayIndex = -1) F = ChildFunctions[i] as IFunction; double denominator = F.Value(arrayIndex); if (denominator == 0) - returnValue = 0; + returnValue = double.MaxValue; else returnValue = MathUtilities.Divide(returnValue, denominator,0); }