ソースを参照

mpi_tree.txx: bug fix in tree construction

bug fix in  MPI_Tree::Initialize(...) for very small number of initial points.
Dhairya Malhotra 11 年 前
コミット
00aadaf6ee
1 ファイル変更1 行追加1 行削除
  1. 1 1
      include/mpi_tree.txx

+ 1 - 1
include/mpi_tree.txx

@@ -268,7 +268,7 @@ void MPI_Tree<TreeNode>::Initialize(typename Node_t::NodeData* init_data){
 
       size_t idx=a;
       Node_t* n=FindNode(lin_oct[idx], false);
-      if(i==0) n=rnode;
+      if(a==0) n=rnode;
       while(n!=NULL && (idx<b || i==omp_p-1)){
         n->SetGhost(false);
         MortonId dn=n->GetMortonId();