Commit e282ccdf authored by PIACIBELLO Cyrille's avatar PIACIBELLO Cyrille

TreeBuilder and GenericLoader modified

parent 15ffd99b
...@@ -177,7 +177,6 @@ private: ...@@ -177,7 +177,6 @@ private:
} }
else{ else{
file->read( (char*)&(this->nbParticles), sizeof(FSize) ); file->read( (char*)&(this->nbParticles), sizeof(FSize) );
printf("NbPart found %d \n",this->nbParticles);
file->read( (char*)&(this->boxWidth) ,sizeof(this->boxWidth) ); file->read( (char*)&(this->boxWidth) ,sizeof(this->boxWidth) );
this->boxWidth *= 2; this->boxWidth *= 2;
FReal x[3]; FReal x[3];
......
...@@ -297,10 +297,8 @@ private: ...@@ -297,10 +297,8 @@ private:
if(nbProcs == 1){ if(nbProcs == 1){
//there is no need to equalize tree between if there is one process //there is no need to equalize tree between if there is one process
//Saving directly the particles //Saving directly the particles
int counter = 0;
FSize idxInLeafArray = 0; FSize idxInLeafArray = 0;
for(FSize idxLeaf = 0 ; idxLeaf < nbLeavesInIntervals ; idxLeaf++){ for(FSize idxLeaf = 0 ; idxLeaf < nbLeavesInIntervals ; idxLeaf++){
counter++;
int nbPartInLeaf = *(reinterpret_cast<int*>(&leavesArray[idxInLeafArray])); int nbPartInLeaf = *(reinterpret_cast<int*>(&leavesArray[idxInLeafArray]));
idxInLeafArray += sizeof(int); idxInLeafArray += sizeof(int);
for(FSize idxPartInLeaf = 0 ; idxPartInLeaf<nbPartInLeaf ; idxPartInLeaf++){ for(FSize idxPartInLeaf = 0 ; idxPartInLeaf<nbPartInLeaf ; idxPartInLeaf++){
......
Markdown is supported
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