From bcc766935028593fdfd6a74e8c4b9a399a033adc Mon Sep 17 00:00:00 2001 From: Ahmad Jan Date: Tue, 2 Jul 2024 15:18:41 -0400 Subject: [PATCH] Update BMI C++ header to match upstream with virtual dtor and correc namespace --- bmi/bmi.hxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bmi/bmi.hxx b/bmi/bmi.hxx index 87b290b7..195dd13f 100644 --- a/bmi/bmi.hxx +++ b/bmi/bmi.hxx @@ -9,10 +9,10 @@ #include #include -namespace bmixx { +namespace bmi { //const int BMI_SUCCESS = 0; - // const int BMI_FAILURE = 1; + //const int BMI_FAILURE = 1; const int MAX_COMPONENT_NAME = 2048; const int MAX_VAR_NAME = 2048; @@ -21,6 +21,8 @@ namespace bmixx { class Bmi { public: + virtual ~Bmi() { } + // Model control functions. virtual void Initialize(std::string config_file) = 0; virtual void Update() = 0;