Skip to content

Commit

Permalink
Update BMI C++ header to match upstream with virtual dtor and correct…
Browse files Browse the repository at this point in the history
… namespace
  • Loading branch information
PhilMiller authored and hellkite500 committed Jun 11, 2024
1 parent cbd4ea4 commit 5b64baa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions bmi/bmi.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
#include <string>
#include <vector>

namespace bmixx {
namespace bmi {

//const int BMI_SUCCESS = 0;
// const int BMI_FAILURE = 1;
const int BMI_SUCCESS = 0;
const int BMI_FAILURE = 1;

const int MAX_COMPONENT_NAME = 2048;
const int MAX_VAR_NAME = 2048;
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion include/bmi_lgar.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class NotImplemented : public std::logic_error {

}

class BmiLGAR : public bmixx::Bmi {
class BmiLGAR : public bmi::Bmi {
public:
BmiLGAR() {
this->input_var_names[0] = "precipitation_rate";
Expand Down

0 comments on commit 5b64baa

Please sign in to comment.