Ejemplo n.º 1
0
 /// <summary>Convert the soil temperature component to the specified thicknesses.</summary>
 /// <param name="soilTemperature">The soil temperature.</param>
 /// <param name="thickness">The thickness to convert to.</param>
 private static void SetSoilTemperature(SoilTemperature soilTemperature, double[] thickness)
 {
     if (soilTemperature != null && !MathUtilities.AreEqual(thickness, soilTemperature.Thickness))
     {
         soilTemperature.InitialSoilTemperature = MapConcentration(soilTemperature.InitialSoilTemperature, soilTemperature.Thickness, thickness, MathUtilities.LastValue(soilTemperature.InitialSoilTemperature));
         soilTemperature.Thickness = thickness;
     }
 }
Ejemplo n.º 2
0
 /// <summary>Convert the soil temperature component to the specified thicknesses.</summary>
 /// <param name="soilTemperature">The soil temperature.</param>
 /// <param name="thickness">The thickness to convert to.</param>
 private static void SetSoilTemperature(SoilTemperature soilTemperature, double[] thickness)
 {
     if (soilTemperature != null && !MathUtilities.AreEqual(thickness, soilTemperature.Thickness))
     {
         soilTemperature.InitialSoilTemperature = MapConcentration(soilTemperature.InitialSoilTemperature, soilTemperature.Thickness, thickness, MathUtilities.LastValue(soilTemperature.InitialSoilTemperature));
         soilTemperature.Thickness = thickness;
     }
 }