mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -05:00
fixed: do not handle Well::WellGuideRate as POD
valgrind is not happy
This commit is contained in:
@@ -458,7 +458,6 @@ HANDLE_AS_POD(Tabdims)
|
||||
HANDLE_AS_POD(TimeStampUTC::YMD)
|
||||
HANDLE_AS_POD(VISCREFRecord)
|
||||
HANDLE_AS_POD(WATDENTRecord)
|
||||
HANDLE_AS_POD(Well::WellGuideRate)
|
||||
HANDLE_AS_POD(WellBrineProperties)
|
||||
HANDLE_AS_POD(Welldims)
|
||||
HANDLE_AS_POD(WellFoamProperties)
|
||||
@@ -1934,6 +1933,15 @@ std::size_t packSize(const WellPolymerProperties& data,
|
||||
packSize(data.m_skprpolytable, comm);
|
||||
}
|
||||
|
||||
std::size_t packSize(const Well::WellGuideRate& data,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
return packSize(data.available, comm) +
|
||||
packSize(data.guide_rate, comm) +
|
||||
packSize(data.guide_phase, comm) +
|
||||
packSize(data.scale_factor, comm);
|
||||
}
|
||||
|
||||
////// pack routines
|
||||
|
||||
template<class T>
|
||||
@@ -3765,6 +3773,16 @@ void pack(const WellPolymerProperties& data,
|
||||
pack(data.m_skprpolytable, buffer, position, comm);
|
||||
}
|
||||
|
||||
void pack(const Well::WellGuideRate& data,
|
||||
std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
pack(data.available, buffer, position, comm);
|
||||
pack(data.guide_rate, buffer, position, comm);
|
||||
pack(data.guide_phase, buffer, position, comm);
|
||||
pack(data.scale_factor, buffer, position, comm);
|
||||
}
|
||||
|
||||
/// unpack routines
|
||||
|
||||
template<class T>
|
||||
@@ -6395,6 +6413,16 @@ void unpack(WellPolymerProperties& data,
|
||||
unpack(data.m_skprpolytable, buffer, position, comm);
|
||||
}
|
||||
|
||||
void unpack(Well::WellGuideRate& data,
|
||||
std::vector<char>& buffer, int& position,
|
||||
Dune::MPIHelper::MPICommunicator comm)
|
||||
{
|
||||
unpack(data.available, buffer, position, comm);
|
||||
unpack(data.guide_rate, buffer, position, comm);
|
||||
unpack(data.guide_phase, buffer, position, comm);
|
||||
unpack(data.scale_factor, buffer, position, comm);
|
||||
}
|
||||
|
||||
#define INSTANTIATE_PACK_VECTOR(T) \
|
||||
template std::size_t packSize(const std::vector<T>& data, \
|
||||
Dune::MPIHelper::MPICommunicator comm); \
|
||||
|
||||
Reference in New Issue
Block a user