diff --git a/include/realizations/coastal/SchismFormulation.hpp b/include/realizations/coastal/SchismFormulation.hpp index 65fc5e3439..83a8cf395c 100644 --- a/include/realizations/coastal/SchismFormulation.hpp +++ b/include/realizations/coastal/SchismFormulation.hpp @@ -2,7 +2,7 @@ #include -#if NGEN_WITH_BMI_FORTRAN +#if NGEN_WITH_BMI_FORTRAN && NGEN_WITH_MPI #include #include @@ -64,4 +64,4 @@ class SchismFormulation : public CoastalFormulation std::shared_ptr> inflows_boundary_provider_; }; -#endif // NGEN_WITH_BMI_FORTRAN +#endif // NGEN_WITH_BMI_FORTRAN && NGEN_WITH_MPI diff --git a/src/realizations/coastal/SchismFormulation.cpp b/src/realizations/coastal/SchismFormulation.cpp index a61c77f01b..a10e7210f2 100644 --- a/src/realizations/coastal/SchismFormulation.cpp +++ b/src/realizations/coastal/SchismFormulation.cpp @@ -1,6 +1,6 @@ #include -#if NGEN_WITH_BMI_FORTRAN +#if NGEN_WITH_BMI_FORTRAN && NGEN_WITH_MPI #include @@ -90,4 +90,4 @@ void SchismFormulation::update() bmi_->Update(); } -#endif // NGEN_WITH_BMI_FORTRAN +#endif // NGEN_WITH_BMI_FORTRAN && NGEN_WITH_MPI