Skip to content

Commit

Permalink
Avoid expensive unintended duplication of data
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj authored and kriben committed Dec 20, 2024
1 parent f53b813 commit af23087
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ void RigWellTargetCandidatesGenerator::accumulateResultsForSingleCase( RimEclips
if ( !std::isinf( clusterNum[resultIndex] ) && clusterNum[resultIndex] > 0 )
{
occupancy[targetResultIndex]++;
for ( auto [resultName, vec] : resultNamesAndSamples )
for ( const auto& [resultName, vec] : resultNamesAndSamples )
{
namedOutputVector[resultName][targetResultIndex] = namedInputVector[resultName]->at( resultIndex );
}
Expand Down

0 comments on commit af23087

Please sign in to comment.