use random access to simplify code at second occasion

This commit is contained in:
Markus Blatt 2020-12-11 14:25:56 +01:00
parent b4ed86313e
commit fa83ed2fdc

View File

@ -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!");