mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #2983 from blattms/stdwell-comm-works-on-spe9-2
use random access to simplify code at second occasion
This commit is contained in:
@@ -153,7 +153,7 @@ public:
|
|||||||
{ return val1.first < val2; });
|
{ return val1.first < val2; });
|
||||||
assert(global_pair != global_pairs.end());
|
assert(global_pair != global_pairs.end());
|
||||||
assert(global_pair->first == pair.global());
|
assert(global_pair->first == pair.global());
|
||||||
*(begin + static_cast<const int&>(pair.local())) = sums[global_pair - global_pairs.begin()];
|
begin[pair.local()] = sums[global_pair - global_pairs.begin()];
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
OPM_THROW(std::logic_error, "In a sequential run the size of the communicator should be 1!");
|
OPM_THROW(std::logic_error, "In a sequential run the size of the communicator should be 1!");
|
||||||
|
|||||||
Reference in New Issue
Block a user