Small fixup

This commit is contained in:
Guilhem Lavaux 2009-12-07 15:46:59 +01:00
parent 2e097cb8cd
commit 1213155222
3 changed files with 5 additions and 3 deletions

View File

@ -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>

View File

@ -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;
} }

View File

@ -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;