Skip to content

Commit

Permalink
Update MicroClimateZone.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
JBris authored Jan 24, 2024
1 parent 1a08a8e commit 4f5fcd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Models/MicroClimate/MicroClimateZone.cs
Original file line number Diff line number Diff line change
Expand Up @@ -662,8 +662,8 @@ private void CalculateLightExtinctionVariables()
// =========================================
for (int j = 0; j <= Canopies.Count - 1; j++)
{
if (MathUtilities.FloatsAreEqual(Canopies[j].Canopy.CoverGreen, 1.0, 1E-10))
throw new Exception("Unrealistically high cover value in MicroMet i.e. > 0.999999999");
// if (MathUtilities.FloatsAreEqual(Canopies[j].Canopy.CoverGreen, 1.0, 1E-10))
// throw new Exception("Unrealistically high cover value in MicroMet i.e. > 0.999999999");

Canopies[j].K = MathUtilities.Divide(-Math.Log(1.0 - Canopies[j].Canopy.CoverGreen), Canopies[j].Canopy.LAI, 0.0);
Canopies[j].Ktot = MathUtilities.Divide(-Math.Log(1.0 - Canopies[j].Canopy.CoverTotal), Canopies[j].Canopy.LAITotal, 0.0);
Expand Down Expand Up @@ -940,4 +940,4 @@ private double EeqFac(double MaxT, double MinT)
}
}
}
}
}

0 comments on commit 4f5fcd7

Please sign in to comment.