Skip to content

Commit

Permalink
SchismFormulation: Match usage to Bmi_Fortran_Adapter constructor tak…
Browse files Browse the repository at this point in the history
…ing MPI_Comm (which calls BMI initialize)
  • Loading branch information
PhilMiller committed Aug 23, 2024
1 parent 23725d1 commit d618d80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/realizations/coastal/SchismFormulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#if NGEN_WITH_BMI_FORTRAN && NGEN_WITH_MPI

#include <realizations/coastal/SchismFormulation.hpp>
#include <mpi.h>

const static auto s_schism_registration_function = "register_bmi";

Expand Down Expand Up @@ -38,15 +39,14 @@ SchismFormulation::SchismFormulation(
, init_config_path
, /* model_time_step_fixed = */ true
, s_schism_registration_function
, MPI_COMM_WORLD
);
}

SchismFormulation::~SchismFormulation() = default;

void SchismFormulation::initialize()
{
bmi_->Initialize();

auto const& input_vars = bmi_->GetInputVarNames();

for (auto const& name : input_vars) {
Expand Down

0 comments on commit d618d80

Please sign in to comment.