Skip to content

Commit

Permalink
SCHISM Formulation: Pass MPI communicator as constructor argument
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilMiller committed Sep 18, 2024
1 parent 6a2a3dd commit b22f210
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/realizations/coastal/SchismFormulation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class SchismFormulation final : public CoastalFormulation
std::string const& id
, std::string const& library_path
, std::string const& init_config_path
, MPI_Comm mpi_comm
, std::shared_ptr<MeshPointsDataProvider> met_forcings
, std::shared_ptr<MeshPointsDataProvider> offshore_boundary
, std::shared_ptr<MeshPointsDataProvider> inflow_boundary
Expand Down
3 changes: 2 additions & 1 deletion src/realizations/coastal/SchismFormulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ SchismFormulation::SchismFormulation(
std::string const& id
, std::string const& library_path
, std::string const& init_config_path
, MPI_Comm mpi_comm
, std::shared_ptr<MeshPointsDataProvider> met_forcings
, std::shared_ptr<MeshPointsDataProvider> offshore_boundary
, std::shared_ptr<MeshPointsDataProvider> inflow_boundary
Expand All @@ -57,7 +58,7 @@ SchismFormulation::SchismFormulation(
, init_config_path
, /* model_time_step_fixed = */ true
, s_schism_registration_function
, MPI_COMM_SELF
, mpi_comm
);
}

Expand Down
1 change: 1 addition & 0 deletions test/coastal/SchismFormulation_Test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ int main(int argc, char **argv)
auto schism = std::make_unique<SchismFormulation>(/*id=*/ "test_schism_formulation",
library_path,
init_config_path,
MPI_COMM_SELF,
netcdf_met_provider,
provider,
provider
Expand Down

0 comments on commit b22f210

Please sign in to comment.