Skip to content
Snippets Groups Projects
Commit 5ea4a1df authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Don't generate particles with id==0

parent 4ffe8c61
No related branches found
No related tags found
2 merge requests!136Master,!116Basic implementation of gparts
......@@ -72,7 +72,7 @@ m = zeros(1)
ids = linspace(0, numPart, numPart, endpoint=False).reshape((numPart,1))
ds = grp.create_dataset('ParticleIDs', (numPart, 1), 'L')
ds[()] = ids
ds[()] = ids + 1
x = ids % L;
y = ((ids - x) / L) % L;
z = (ids - x - L * y) / L**2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment