Cleanup some development cruft and re-enable openmp clause in jozov2

This commit is contained in:
Guilhem Lavaux 2013-04-02 09:06:56 -05:00
parent 5c40a6c226
commit 85546379cf
3 changed files with 9 additions and 21 deletions

View file

@ -39,10 +39,13 @@ void buildInitialZones(PARTICLE *p, pid_t np, pid_t* jumped,
}
(cout << "Post-jump ..." << endl).flush();
numZones = 0;
pid_t loc_NumZones = 0;
#pragma omp parallel for schedule(static) reduction(+:loc_NumZones)
for (pid_t i = 0; i < np; i++)
if (numinh[i] > 0)
numZones++;
loc_NumZones++;
numZones = loc_NumZones;
cout << format("%d initial zones found") % numZones << endl;
delete[] jumper;