From 55c56c16873bb35d82b0e1118e3547221cf8a7f7 Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Mon, 9 Feb 2015 18:17:05 +0100 Subject: [PATCH] Use smp alias calls to avoid compilation error --- sample/simple3DFilter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sample/simple3DFilter.cpp b/sample/simple3DFilter.cpp index de847f9..9073546 100644 --- a/sample/simple3DFilter.cpp +++ b/sample/simple3DFilter.cpp @@ -1,3 +1,4 @@ +#include "openmp.hpp" #include "omptl/algorithm" #include #include "yorick.hpp" @@ -53,7 +54,7 @@ void computeInterpolatedField(MyTree *tree1, double boxsize, int Nres, double cx { double pz = (rz)*boxsize/Nres-cz; - cout << format("[%d] %d / %d") % omp_get_thread_num() % rz % Nres << endl; + cout << format("[%d] %d / %d") % smp_get_thread_id() % rz % Nres << endl; for (int ry = 0; ry < Nres; ry++) { double py = (ry)*boxsize/Nres-cy;