mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-08 23:43:02 -06:00
fixed: have to broadcast summarystate on restart
This commit is contained in:
parent
d13e5ac8dd
commit
efd078f564
@ -839,6 +839,10 @@ RestartValue loadParallelRestart(const EclipseIO* eclIO, Action::State& actionSt
|
||||
Mpi::pack(restartValues, buffer, position, comm);
|
||||
comm.broadcast(&position, 1, 0);
|
||||
comm.broadcast(buffer.data(), position, 0);
|
||||
std::vector<char> buf2 = summaryState.serialize();
|
||||
int size = buf2.size();
|
||||
comm.broadcast(&size, 1, 0);
|
||||
comm.broadcast(buf2.data(), size, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -848,6 +852,10 @@ RestartValue loadParallelRestart(const EclipseIO* eclIO, Action::State& actionSt
|
||||
comm.broadcast(buffer.data(), bufferSize, 0);
|
||||
int position{};
|
||||
Mpi::unpack(restartValues, buffer, position, comm);
|
||||
comm.broadcast(&bufferSize, 1, 0);
|
||||
buffer.resize(bufferSize);
|
||||
comm.broadcast(buffer.data(), bufferSize, 0);
|
||||
summaryState.deserialize(buffer);
|
||||
}
|
||||
return restartValues;
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user