Distribute SummaryConfig Objects With eclBroadcast

Suggested by [at]akva2.

While here, also switch to using type deduction instead of explicit
template arguments for the eclBroadcast overloads.
This commit is contained in:
Bård Skaflestad
2024-03-22 14:59:10 +01:00
parent 8e9cb4b249
commit 785b96f6f3
3 changed files with 8 additions and 21 deletions

View File

@@ -82,11 +82,12 @@ void eclStateBroadcast(Parallel::Communication comm, EclipseState& eclState, Sch
template <class T>
void eclBroadcast(Parallel::Communication comm, T& data)
{
Opm::Parallel::MpiSerializer ser(comm);
::Opm::Parallel::MpiSerializer ser(comm);
ser.broadcast(data);
}
template void eclBroadcast<TransMult>(Parallel::Communication, TransMult&);
template void eclBroadcast<Schedule>(Parallel::Communication, Schedule&);
template void eclBroadcast(Parallel::Communication, TransMult&);
template void eclBroadcast(Parallel::Communication, Schedule&);
template void eclBroadcast(Parallel::Communication, SummaryConfig&);
}