Skip to content

Commit

Permalink
GSAGH-149 Element1dAverageStrainEnergyDensity
Browse files Browse the repository at this point in the history
  • Loading branch information
Tilman Reinhardt committed Dec 1, 2023
1 parent e8b360c commit 11a3a9f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public INodeResultSubset<IEnergyDensity, NodeExtremaKey> ResultSubset(ICollectio
string elementList = string.Join(" ", missingIds);
switch (ApiResult.Result) {
case AnalysisCaseResult analysisCase:
ReadOnlyDictionary<int, double> aCaseResults = analysisCase.Element1dAverageStrainEnergyDensity(elementList, positions);
ReadOnlyDictionary<int, double> aCaseResults = analysisCase.Element1dAverageStrainEnergyDensity(elementList);
Parallel.ForEach(aCaseResults.Keys, elementId => {
var res = new StrainEnergyDensity(aCaseResults[elementId]);
((ConcurrentDictionary<int, IList<IEnergyDensity>>)Cache).TryAdd(
Expand All @@ -36,7 +36,7 @@ public INodeResultSubset<IEnergyDensity, NodeExtremaKey> ResultSubset(ICollectio
break;

case CombinationCaseResult combinationCase:
ReadOnlyDictionary<int, ReadOnlyCollection<double>> cCaseResults = combinationCase.Element1dAverageStrainEnergyDensity(elementList, positions);
ReadOnlyDictionary<int, ReadOnlyCollection<double>> cCaseResults = combinationCase.Element1dAverageStrainEnergyDensity(elementList);
Parallel.ForEach(cCaseResults.Keys, elementId => {
var permutationResults = new Collection<IEnergyDensity>();
foreach (double permutationResult in cCaseResults[elementId]) {
Expand Down

0 comments on commit 11a3a9f

Please sign in to comment.