making destructor of WellInterface virtual

to avoid memory leaking.
This commit is contained in:
Kai Bao 2017-08-22 09:43:26 +02:00
parent a60a969257
commit 8abe48a693

View File

@ -87,6 +87,9 @@ namespace Opm
/// Constructor
WellInterface(const Well* well, const int time_step, const Wells* wells);
/// Virutal destructor
virtual ~WellInterface() {}
/// Well name.
const std::string& name() const;