From 574ad179eb932503857137dce47abc1117cb4049 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 7 Feb 2017 13:15:52 +0800 Subject: Handle #pragma omp warning when not give -fopenmp --- mass_profile/nfw_ne.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mass_profile') diff --git a/mass_profile/nfw_ne.hpp b/mass_profile/nfw_ne.hpp index 8f23820..1eeb17c 100644 --- a/mass_profile/nfw_ne.hpp +++ b/mass_profile/nfw_ne.hpp @@ -157,7 +157,9 @@ namespace opt_utilities std::vector yvec(r.size()); const T kT_erg0=pTfunc->eval((r.at(0)+r.at(1))/2)*k; //calculate the integration +#ifdef _OPENMP #pragma omp parallel for schedule(dynamic) +#endif for(size_t i=0;i ydxvec(r.size()-1); +#ifdef _OPENMP #pragma omp parallel for schedule(dynamic) +#endif for(size_t i=1;i result(r.size()-1); +#ifdef _OPENMP #pragma omp parallel for schedule(dynamic) +#endif for(size_t i=0;i