Skip to content

Commit 6a6262a

Browse files
author
Jean-Luc Pons
committed
Fix for lost particle at last processed turn
1 parent 4642c99 commit 6a6262a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

atgpu/Lattice.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ void Lattice::generateGPUKernel() {
235235
code.append(" }\n");
236236

237237
// Last ref after the last element
238+
code.append(" if( pLost ) elem=startElem+nbElementToProcess;\n");
238239
code.append(" if( elem==NB_TOTAL_ELEMENT ) {\n");
239240
storeParticleCoord(code);
240241
code.append(" }\n");

0 commit comments

Comments
 (0)