Commit 6d5a07ea1f84d9a9b14c401367e69f7ead8791a3

Authored by Jürgen Knödlseder
1 parent c5ff3ea5

Add missing OpenMP include statement

src/ctbin/ctbin.cpp
@@ -32,6 +32,11 @@ @@ -32,6 +32,11 @@
32 #include "ctbin.hpp" 32 #include "ctbin.hpp"
33 #include "GTools.hpp" 33 #include "GTools.hpp"
34 34
  35 +/* __ OpenMP section _____________________________________________________ */
  36 +#ifdef _OPENMP
  37 +#include <omp.h>
  38 +#endif
  39 +
35 /* __ Method name definitions ____________________________________________ */ 40 /* __ Method name definitions ____________________________________________ */
36 #define G_GET_PARAMETERS "ctbin::get_parameters()" 41 #define G_GET_PARAMETERS "ctbin::get_parameters()"
37 #define G_FILL_CUBE "ctbin::fill_cube(GCTAObservation*)" 42 #define G_FILL_CUBE "ctbin::fill_cube(GCTAObservation*)"
src/ctmodel/ctmodel.cpp
@@ -32,6 +32,11 @@ @@ -32,6 +32,11 @@
32 #include "ctmodel.hpp" 32 #include "ctmodel.hpp"
33 #include "GTools.hpp" 33 #include "GTools.hpp"
34 34
  35 +/* __ OpenMP section _____________________________________________________ */
  36 +#ifdef _OPENMP
  37 +#include <omp.h>
  38 +#endif
  39 +
35 /* __ Method name definitions ____________________________________________ */ 40 /* __ Method name definitions ____________________________________________ */
36 #define G_GET_PARAMETERS "ctmodel::get_parameters()" 41 #define G_GET_PARAMETERS "ctmodel::get_parameters()"
37 #define G_GET_OBS "ctmodel::get_obs()" 42 #define G_GET_OBS "ctmodel::get_obs()"