소스 검색

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();