mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Do recurse in the recursive funtion computeGlobalReduction!
Somehow this was missed and only the first entry in the tuple was computed globally.
This commit is contained in:
@@ -250,6 +250,7 @@ private:
|
|||||||
{
|
{
|
||||||
auto& val=std::get<I>(values);
|
auto& val=std::get<I>(values);
|
||||||
val = std::get<I>(operators).localOperator()(val, std::get<I>(receivedValues));
|
val = std::get<I>(operators).localOperator()(val, std::get<I>(receivedValues));
|
||||||
|
computeGlobalReduction<I+1>(receivedValues, operators, values);
|
||||||
}
|
}
|
||||||
/// \brief TMP for computing the the local reduction on the DOF that the process owns.
|
/// \brief TMP for computing the the local reduction on the DOF that the process owns.
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user