mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-01 05:19:09 -06:00
making destructor of WellInterface virtual
to avoid memory leaking.
This commit is contained in:
parent
a60a969257
commit
8abe48a693
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user