diff --git a/src/core/OpenMP.h b/src/core/OpenMP.h index 825046dc1570c7106aeb30c0b4f5958617207afa..67d32589a2c3676361e9605ee06cdee385dcdebd 100644 --- a/src/core/OpenMP.h +++ b/src/core/OpenMP.h @@ -21,6 +21,7 @@ #pragma once #include "core/Abort.h" +#include "waLBerlaDefinitions.h" // MPI SECTION // diff --git a/src/waLBerlaDefinitions.in.h b/src/waLBerlaDefinitions.in.h index 563ec863a1c6694b69dab1efd3b5cca2253aaac7..610aea18d7e537ea82fbd70bca59eda88e3f55cc 100644 --- a/src/waLBerlaDefinitions.in.h +++ b/src/waLBerlaDefinitions.in.h @@ -20,6 +20,7 @@ // External libraries #cmakedefine WALBERLA_BUILD_WITH_MPI +#cmakedefine WALBERLA_BUILD_WITH_OPENMP #cmakedefine WALBERLA_BUILD_WITH_METIS #cmakedefine WALBERLA_BUILD_WITH_PARMETIS diff --git a/tests/core/OpenMPWrapperTest.cpp b/tests/core/OpenMPWrapperTest.cpp index 6da8cbadca525c6121157472d529c6d3c3875e8f..d719652391a1206b370bef788beeeba64a00dd87 100644 --- a/tests/core/OpenMPWrapperTest.cpp +++ b/tests/core/OpenMPWrapperTest.cpp @@ -21,11 +21,13 @@ #include <core/debug/TestSubsystem.h> #include <core/logging/Logging.h> #include <core/OpenMP.h> +#include <core/mpi/Environment.h> using namespace walberla; -int main( int /*argc*/, char** /*argv*/ ) +int main( int argc, char** argv ) { + mpi::Environment env(argc, argv); debug::enterTestMode(); WALBERLA_OPENMP_SECTION()