Small fixup
This commit is contained in:
parent
2e097cb8cd
commit
1213155222
@ -1,5 +1,5 @@
|
|||||||
#ifndef __MAK_INTERPOLATE_HPP
|
#ifndef __CTOOL_INTERPOLATE_HPP
|
||||||
#define __MAK_INTERPOLATE_HPP
|
#define __CTOOL_INTERPOLATE_HPP
|
||||||
|
|
||||||
#include "config.hpp"
|
#include "config.hpp"
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
@ -157,3 +157,4 @@ void OctTree::insertParticle(octPtr node,
|
|||||||
particleId, maxAbsoluteDepth-1);
|
particleId, maxAbsoluteDepth-1);
|
||||||
cells[node].children[octPos] = newNode;
|
cells[node].children[octPos] = newNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,7 +29,6 @@ namespace CosmoTool
|
|||||||
class OctTree
|
class OctTree
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
//Coordinates of particles must be in the [0:1] range
|
|
||||||
OctTree(const FCoordinates *particles, octPtr numParticles,
|
OctTree(const FCoordinates *particles, octPtr numParticles,
|
||||||
uint32_t maxTreeDepth, uint32_t maxAbsoluteDepth,
|
uint32_t maxTreeDepth, uint32_t maxAbsoluteDepth,
|
||||||
uint32_t threshold = 1);
|
uint32_t threshold = 1);
|
||||||
@ -68,6 +67,8 @@ namespace CosmoTool
|
|||||||
walkTreeElements(f, condition, 0, rootCenter, octCoordCenter);
|
walkTreeElements(f, condition, 0, rootCenter, octCoordCenter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
const FCoordinates *particles;
|
const FCoordinates *particles;
|
||||||
octPtr numParticles;
|
octPtr numParticles;
|
||||||
|
Loading…
Reference in New Issue
Block a user