mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Deserialize TranCalculator also on master
This commit is contained in:
@@ -81,6 +81,7 @@ public:
|
||||
int position = 0;
|
||||
Mpi::pack(m_intKeys, buffer, position, comm);
|
||||
Mpi::pack(m_doubleKeys, buffer, position, comm);
|
||||
int calcStart = position;
|
||||
{
|
||||
std::vector<char> tran_buffer = globalProps.serialize_tran();
|
||||
position += tran_buffer.size();
|
||||
@@ -89,6 +90,9 @@ public:
|
||||
comm.broadcast(&position, 1, 0);
|
||||
comm.broadcast(buffer.data(), position, 0);
|
||||
|
||||
// Unpack Calculator as we need it here, too.
|
||||
m_distributed_fieldProps.deserialize_tran( std::vector<char>(buffer.begin() + calcStart, buffer.end()) );
|
||||
|
||||
// copy data to persistent map based on local id
|
||||
m_no_data = m_intKeys.size() + m_doubleKeys.size() +
|
||||
Grid::dimensionworld;
|
||||
|
||||
Reference in New Issue
Block a user