diff --git a/opm/autodiff/StandardWells_impl.hpp b/opm/autodiff/StandardWells_impl.hpp index e7f39aaa1..119e207ad 100644 --- a/opm/autodiff/StandardWells_impl.hpp +++ b/opm/autodiff/StandardWells_impl.hpp @@ -72,7 +72,8 @@ namespace Opm StandardWells::StandardWells(const Wells* wells_arg) - : wells_(wells_arg) + : wells_active_(wells_arg!=nullptr) + , wells_(wells_arg) , wops_(wells_arg) , fluid_(nullptr) , active_(nullptr)