From e563215009b236c4603c6a23522cb9290cfc2d19 Mon Sep 17 00:00:00 2001 From: DominikaLos Date: Mon, 16 Dec 2024 12:30:56 +0100 Subject: [PATCH] bugfix: fixed max/min initial values for steel util --- .../5_Results/5_Extrema/SteelUtilisationExtremaKeyUtility.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/GsaGH/Parameters/5_Results/5_Extrema/SteelUtilisationExtremaKeyUtility.cs b/GsaGH/Parameters/5_Results/5_Extrema/SteelUtilisationExtremaKeyUtility.cs index 34d995c1c..a509938d6 100644 --- a/GsaGH/Parameters/5_Results/5_Extrema/SteelUtilisationExtremaKeyUtility.cs +++ b/GsaGH/Parameters/5_Results/5_Extrema/SteelUtilisationExtremaKeyUtility.cs @@ -5,9 +5,8 @@ namespace GsaGH.Parameters.Results { public static partial class ExtremaKeyUtility { public static (SteelUtilisationExtremaKeys Max, SteelUtilisationExtremaKeys Min) GetSteelUtilisationExtremaKeys( this IDictionary> subset) { - - var maxValue = new SteelUtilisation(double.MaxValue); - var minValue = new SteelUtilisation(0.0); + var maxValue = new SteelUtilisation(double.MinValue); + var minValue = new SteelUtilisation(double.MaxValue); var maxKeys = new SteelUtilisationExtremaKeys(); var minKeys = new SteelUtilisationExtremaKeys();