Commit ca112de8 authored by BRAMAS Berenger's avatar BRAMAS Berenger

Add an assert

parent 6ca18f79
......@@ -461,6 +461,7 @@ public:
if( blockStartIdx <= interactionsIndexes[idxInter] && interactionsIndexes[idxInter] < blockEndIdx ){
const int leafPos = containers->getLeafIndex(interactionsIndexes[idxInter]);
if(leafPos != -1){
FAssertLF(interactionsIndexes[idxInter] == containers->getLeafMortonIndex(leafPos));
interactionsObjects[counterExistingCell] = containers->template getLeaf<ParticleContainerClass>(leafPos);
FAssertLF(interactions[interactionsPosition[idxInter]] == nullptr);
interactions[interactionsPosition[idxInter]] = &interactionsObjects[counterExistingCell];
......
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