diff --git a/AMDiS/src/CreatorMap.cc b/AMDiS/src/CreatorMap.cc index 13694e00fbc770ed42871b6fc04c0435974c6367..47e36b01b9f43e09195943c4914477de59ecab43 100644 --- a/AMDiS/src/CreatorMap.cc +++ b/AMDiS/src/CreatorMap.cc @@ -225,8 +225,10 @@ namespace AMDiS { creator = NEW ResidualEstimator::Creator; addCreator("residual", creator); +#ifdef _OPENMP creator = NEW ResidualParallelEstimator::Creator; addCreator("residualparallel", creator); +#endif creator = NEW RecoveryEstimator::Creator; addCreator("recovery", creator); diff --git a/AMDiS/src/ResidualParallelEstimator.cc b/AMDiS/src/ResidualParallelEstimator.cc index 809608916a5680cb8690468575ef680b210f62f6..467236b4dc957f4f9e726e5eeb3f18fa025b8b1a 100644 --- a/AMDiS/src/ResidualParallelEstimator.cc +++ b/AMDiS/src/ResidualParallelEstimator.cc @@ -4,6 +4,8 @@ #include "Parameters.h" #include "OpenMP.h" +#ifdef _OPENMP + namespace AMDiS { ResidualParallelEstimator::ResidualParallelEstimator(::std::string name, int r) : Estimator(name, r), @@ -106,3 +108,4 @@ namespace AMDiS { } +#endif // _OPENMP diff --git a/AMDiS/src/ResidualParallelEstimator.h b/AMDiS/src/ResidualParallelEstimator.h index d68173ba8dbeb65195023b5c9fd45b22c2822012..7e819c659018881b2a2a95179f616bff9898fe9a 100644 --- a/AMDiS/src/ResidualParallelEstimator.h +++ b/AMDiS/src/ResidualParallelEstimator.h @@ -26,6 +26,8 @@ #ifndef AMDIS_RESIDUALPARALLELESTIMATOR_H #define AMDIS_RESIDUALPARALLELESTIMATOR_H +#ifdef _OPENMP + #include "ResidualEstimator.h" #include <vector> @@ -106,4 +108,6 @@ namespace AMDiS { } +#endif // _OPENMP + #endif // AMDIS_RESIDUALPARALLELESTIMATOR_H