Use smp alias calls to avoid compilation error
This commit is contained in:
parent
beb651c79a
commit
55c56c1687
@ -1,3 +1,4 @@
|
|||||||
|
#include "openmp.hpp"
|
||||||
#include "omptl/algorithm"
|
#include "omptl/algorithm"
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include "yorick.hpp"
|
#include "yorick.hpp"
|
||||||
@ -53,7 +54,7 @@ void computeInterpolatedField(MyTree *tree1, double boxsize, int Nres, double cx
|
|||||||
{
|
{
|
||||||
double pz = (rz)*boxsize/Nres-cz;
|
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++)
|
for (int ry = 0; ry < Nres; ry++)
|
||||||
{
|
{
|
||||||
double py = (ry)*boxsize/Nres-cy;
|
double py = (ry)*boxsize/Nres-cy;
|
||||||
|
Loading…
Reference in New Issue
Block a user