Commit 5d187866 authored by Olaf's avatar Olaf

fix topology input cubic

parent ac6bb441
......@@ -95,7 +95,7 @@ def cubic(
When the topology is not equal to 1, 2 or 3.
"""
# Position
N_grid = math.ceil(N_particles**(1/3))
N_grid = math.ceil(N_particles**(1/topology))
d = L_box/N_grid
# Create random sample
......
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