rodarima / cpic

Particle in Cell simulation of plasma in C
GNU General Public License v3.0
1 stars 1 forks source link

interpolate_p2f: Assertion `x[Y][iv] >= c->x0[Y][iv]' failed #7

Closed rodarima closed 4 years ago

rodarima commented 4 years ago

Likely, we have not wrapped some particle, as running with 1 MPI process is not going through comm_plasma_y.

(gdb) p x[1][iv]
$2 = -0.00022396883585063811

The boundary conditions are applied in comm_plasma_x, which is a bit weird, but allows us to only use 2 if's per particle to determine if they must move outside the chunk.

We could move the boundary condition outside the comm_plasma, but then we couldn't check again we have no lost particles left.