Fixed integrator to stop at exactly the right distance

This commit is contained in:
Guilhem Lavaux 2015-07-14 12:21:20 +02:00
parent b668f9947d
commit 21507e3013
2 changed files with 23 additions and 25 deletions

View file

@ -280,7 +280,7 @@ namespace CosmoTool {
coords tmpBound;
NodeIntType nodeId;
#pragma omp atomic
#pragma omp atomic capture
nodeId = (this->lastNode)++;
node = &nodes[nodeId];