Commit 94dfd88a authored by BRAMAS Berenger's avatar BRAMAS Berenger

make default position equal to infinity for the padded SIMD particles

parent 0c6ae6e6
......@@ -130,6 +130,9 @@ protected:
for(int idx = 0 ; idx < 3 ; ++idx){
memcpy(newData + (allocatedParticles * idx), positions[idx], sizeof(FReal) * nbParticles);
positions[idx] = newData + (allocatedParticles * idx);
for(FSize idxEmpty = nbParticles ; idxEmpty < allocatedParticles ; ++idxEmpty){
positions[idx][idxEmpty] = std::numeric_limits<FReal>::infinity();
}
}
// copy attributes
AttributeClass* startAddress = reinterpret_cast<AttributeClass*>(positions[2] + allocatedParticles);
......
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