mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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&);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user