Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e9668d99 authored by Martin Khannouz's avatar Martin Khannouz Committed by Berenger Bramas
Browse files

Add constructor to specify the size of each group.

Note that some error could appear if there is not enough group in input.
parent 85fa8b07
Branches
Tags
No related merge requests found
...@@ -701,7 +701,10 @@ public: ...@@ -701,7 +701,10 @@ public:
FGroupOfParticles<FReal, NbSymbAttributes, NbAttributesPerParticle, AttributeClass>*const newParticleBlock = new FGroupOfParticles<FReal, NbSymbAttributes, NbAttributesPerParticle, AttributeClass>(currentBlockIndexes[0], FGroupOfParticles<FReal, NbSymbAttributes, NbAttributesPerParticle, AttributeClass>*const newParticleBlock = new FGroupOfParticles<FReal, NbSymbAttributes, NbAttributesPerParticle, AttributeClass>(currentBlockIndexes[0],
currentBlockIndexes[sizeOfBlock-1]+1, currentBlockIndexes[sizeOfBlock-1]+1,
sizeOfBlock, lastParticle-firstParticle); sizeOfBlock, lastParticle-firstParticle);
#include <iostream>
using namespace std;
if(currentBlockIndexes[sizeOfBlock-1]+1 == 511)
cout << "Suricate" << endl;
// Init cells // Init cells
size_t nbParticlesOffsetBeforeLeaf = 0; size_t nbParticlesOffsetBeforeLeaf = 0;
FSize offsetParticles = firstParticle; FSize offsetParticles = firstParticle;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment