def keepParticlesInCell(positions):
for p in range(config.nParticles):
positions[p,:] = np.remainder(positions[p,:], config.lCalc);
# Calculate the forces. Jitted to make is super fast
# Code has been based on: http://combichem.blogspot.nl/2013/04/fun-with-numba-numpy-and-f2py.html
评论列表
文章目录