Skip to content

Commit

Permalink
gsagh-366 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikaLos committed Oct 5, 2023
1 parent 22dea22 commit d6154bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Threading.Tasks;

namespace GsaGH.Parameters {
public class GsaNodeDisplacement {
public class GsaNodeDisplacements {
internal Dictionary<string, GsaResultsValues> ACaseResultValues { get; private set; }
= new Dictionary<string, GsaResultsValues>();

Expand Down
10 changes: 5 additions & 5 deletions GsaGH/Parameters/5_Results/GsaResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ internal Dictionary<string, ReadOnlyDictionary<int, Element3DResult>>
/// Append to this dictionary to chache results
/// key = elementList
/// </summary>
internal GsaNodeDisplacement ACaseNodeDisplacementValues { get; set; }
= new GsaNodeDisplacement();
internal GsaNodeDisplacements AnalysisCaseNodeDisplacements { get; set; }
= new GsaNodeDisplacements();
/// <summary>
/// Analysis Case Node Footfall Result VALUES Dictionary
/// Append to this dictionary to chache results
Expand Down Expand Up @@ -931,17 +931,17 @@ internal Tuple<List<GsaResultsValues>, List<int>> NodeDisplacementValues(
}

if (Type == CaseType.AnalysisCase) {
if (!ACaseNodeDisplacementValues.ACaseResultValues.ContainsKey(nodelist)) {
if (!AnalysisCaseNodeDisplacements.ACaseResultValues.ContainsKey(nodelist)) {
if (!ACaseNodeResults.ContainsKey(nodelist)) {
ACaseNodeResults.Add(nodelist, AnalysisCaseResult.NodeResults(nodelist));
}

ACaseNodeDisplacementValues.AddAnalysisCaseValue(nodelist,
AnalysisCaseNodeDisplacements.AddAnalysisCaseValue(nodelist,
ResultHelper.GetNodeResultValues(ACaseNodeResults[nodelist], lengthUnit));
}

return new Tuple<List<GsaResultsValues>, List<int>>(new List<GsaResultsValues> {
ACaseNodeDisplacementValues.ACaseResultValues[nodelist],
AnalysisCaseNodeDisplacements.ACaseResultValues[nodelist],
}, Model.Model.Nodes(nodelist).Keys.ToList());
}

Expand Down

0 comments on commit d6154bf

Please sign in to comment.