From c29d60640c60b7a616ae9a07b2036754eef0ad88 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Mon, 3 Jun 2024 12:31:45 +0200 Subject: [PATCH] GenericThresholdPressure: convert data to appropriate Scalar --- opm/simulators/flow/GenericThresholdPressure.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opm/simulators/flow/GenericThresholdPressure.hpp b/opm/simulators/flow/GenericThresholdPressure.hpp index ebc89376a..0df35763e 100644 --- a/opm/simulators/flow/GenericThresholdPressure.hpp +++ b/opm/simulators/flow/GenericThresholdPressure.hpp @@ -74,8 +74,8 @@ public: * * This is used for the restart capability. */ - void setFromRestart(const std::vector& values) - { thpres_ = values; } + void setFromRestart(const std::vector& values) + { thpres_.assign(values.begin(), values.end()); } //! \brief Returns a fully expanded vector for restart file writing. //! \details Returns the union of explicitly configured entries and defaulted values.