mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -05:00
add complexType template parameter to EclMpiSerializer::vector
set to false if vector contains a type without a serializeOp
This commit is contained in:
@@ -52,7 +52,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
template<class T>
|
||||
template<class T, bool complexType = true>
|
||||
void vector(std::vector<T>& data)
|
||||
{
|
||||
auto handle = [&](auto& d)
|
||||
@@ -62,6 +62,8 @@ public:
|
||||
pair(it);
|
||||
else if constexpr (is_ptr<T>::value)
|
||||
ptr(it);
|
||||
else if constexpr (!complexType)
|
||||
(*this)(it);
|
||||
else
|
||||
it.serializeOp(*this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user