Procházet zdrojové kódy

mpi_tree.txx: bug fix in tree construction

bug fix in  MPI_Tree::Initialize(...) for very small number of initial points.
Dhairya Malhotra před 11 roky
rodič
revize
00aadaf6ee
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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();