mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
[bugfix] Pass references to gatherVectorOnRoot
This commit is contained in:
@@ -264,8 +264,9 @@ namespace Opm
|
||||
assert(pwinfo.communication().rank() != 0 || &dummyWell != &well);
|
||||
// report the local connections
|
||||
reportConnections(dummyWell, pu, itr, globalCellIdxMap);
|
||||
// gather them to to well on root.
|
||||
gatherVectorsOnRoot(dummyWell.connections, well.connections, pwinfo.communication());
|
||||
// gather them to well on root.
|
||||
gatherVectorsOnRoot(dummyWell.connections, well.connections,
|
||||
pwinfo.communication());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -317,8 +318,8 @@ namespace Opm
|
||||
#else
|
||||
using Communication = Dune::CollectiveCommunication<MPIComm>;
|
||||
#endif
|
||||
void gatherVectorsOnRoot(std::vector< data::Connection > from_connections,
|
||||
std::vector< data::Connection > to_connections,
|
||||
void gatherVectorsOnRoot(const std::vector< data::Connection >& from_connections,
|
||||
std::vector< data::Connection >& to_connections,
|
||||
const Communication& comm) const
|
||||
{
|
||||
int size = from_connections.size();
|
||||
|
||||
Reference in New Issue
Block a user