mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-28 02:00:59 -06:00
use random access to simplify code during partial_sum of dist wells
This commit is contained in:
parent
d7ae211729
commit
b4ed86313e
@ -128,7 +128,7 @@ public:
|
||||
{
|
||||
if (pair.local().attribute() == owner)
|
||||
{
|
||||
my_pairs.emplace_back(pair.global(), *(begin+(static_cast<const int&>(pair.local()))));
|
||||
my_pairs.emplace_back(pair.global(), begin[pair.local()]);
|
||||
}
|
||||
}
|
||||
int mySize = my_pairs.size();
|
||||
|
Loading…
Reference in New Issue
Block a user