mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
use random access to simplify code at second occasion
This commit is contained in:
parent
b4ed86313e
commit
fa83ed2fdc
@ -153,7 +153,7 @@ public:
|
||||
{ return val1.first < val2; });
|
||||
assert(global_pair != global_pairs.end());
|
||||
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
|
||||
OPM_THROW(std::logic_error, "In a sequential run the size of the communicator should be 1!");
|
||||
|
Loading…
Reference in New Issue
Block a user