Commit 3e87a2f1 authored by berenger-bramas's avatar berenger-bramas
Browse files

Remove a bug from the FOctree cause of the octree height.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@105 2616d619-271b-44dc-8df4-d4a8f33a7222
parent ebba11c9
......@@ -91,7 +91,7 @@ public:
*/
FOctree(const int inHeight, const int inSubHeight,
const FReal inBoxWidth, const F3DPosition& inBoxCenter)
: boxWidthAtLevel(new FReal[this->height]),
: boxWidthAtLevel(new FReal[inHeight]),
height(inHeight) , subHeight(inSubHeight), leafIndex(this->height-1),
root(0, 0, this->subHeight, 1), boxCenter(inBoxCenter), boxCorner(inBoxCenter - (inBoxWidth/2)), boxWidth(inBoxWidth)
{
......
......@@ -86,7 +86,7 @@ int main(int argc, char ** argv){
// -----------------------------------------------------
FOctree<FmbParticle, FmbCell, FSimpleLeaf>
tree(NbLevels, SizeSubLevels, loader.getBoxWidth(),loader.getCenterOfBox());
tree(NbLevels, SizeSubLevels, loader.getBoxWidth(), loader.getCenterOfBox());
// -----------------------------------------------------
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment