Commit f0cdd068 authored by BRAMAS Berenger's avatar BRAMAS Berenger

add some assertion

parent 11164df8
......@@ -76,6 +76,7 @@ __global__ void FCuda__upwardPassPerform(unsigned char* currentCellsPtr, std::si
FCudaAssertLF(nbSubCellGroups != 0);
int idxSubCellGroup = 0;
int idxChildCell = subCellGroups[0].getFistChildIdx(currentCells.getCellMortonIndex(0));
FCudaAssertLF(idxChildCell != -1);
for(int cellIdx = 0 ; cellIdx < currentCells.getNumberOfCellsInBlock() ; ++cellIdx){
typename CellContainerClass::CompleteCellClass cell = currentCells.getUpCell(cellIdx);
......@@ -327,6 +328,7 @@ __global__ void FCuda__downardPassPerform(unsigned char* currentCellsPtr, std::s
int idxSubCellGroup = 0;
int idxChildCell = subCellGroups[0].getFistChildIdx(currentCells.getCellMortonIndex(0));
FCudaAssertLF(idxChildCell != -1);
for(int cellIdx = 0 ; cellIdx < currentCells.getNumberOfCellsInBlock() ; ++cellIdx){
typename CellContainerClass::CompleteCellClass cell = currentCells.getDownCell(cellIdx);
......
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