Skip to content

Commit

Permalink
Fixed build error
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-el-sayed committed Nov 2, 2023
1 parent 70b557b commit 2feba1d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/sfincs_bmi.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace
{
std::string &rtrim(std::string &str)
{
str.erase(s.find_last_not_of(' ') + 1);
str.erase(str.find_last_not_of(' ') + 1);
return str;
}
}
Expand All @@ -70,8 +70,7 @@ void SfincsBmi::Initialize(std::string config_file)
}
void SfincsBmi::Update()
{
int status = update();
if (status != 0)
if (update() != 0)
{
throw BmiError();
}
Expand All @@ -82,8 +81,7 @@ void SfincsBmi::UpdateUntil(double time)
}
void SfincsBmi::Finalize()
{
int status = finalize();
if (status != 0)
if (finalize() != 0)
{
throw BmiError();
}
Expand Down

0 comments on commit 2feba1d

Please sign in to comment.