mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
add complexType template parameter to EclMpiSerializer::vector
set to false if vector contains a type without a serializeOp
This commit is contained in:
parent
eb53bb0db9
commit
c86cfbd83a
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user