mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
quell uninitialized usage warning without mpi
This commit is contained in:
parent
46ae5fa577
commit
e179bb5850
@ -887,12 +887,14 @@ void unpack(RestartValue& data, std::vector<char>& buffer, int& position,
|
|||||||
unpack(data.extra, buffer, position, comm);
|
unpack(data.extra, buffer, position, comm);
|
||||||
}
|
}
|
||||||
|
|
||||||
void unpack(Opm::time_point& data, std::vector<char>& buffer, int& position,
|
void unpack([[maybe_unused]] Opm::time_point& data, std::vector<char>& buffer, int& position,
|
||||||
Dune::MPIHelper::MPICommunicator comm)
|
Dune::MPIHelper::MPICommunicator comm)
|
||||||
{
|
{
|
||||||
std::time_t tp;
|
std::time_t tp;
|
||||||
unpack(tp, buffer, position, comm);
|
unpack(tp, buffer, position, comm);
|
||||||
|
#if HAVE_MPI
|
||||||
data = Opm::TimeService::from_time_t(tp);
|
data = Opm::TimeService::from_time_t(tp);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user