Skip to content
Snippets Groups Projects
Commit 070e45aa authored by Josh Borrow's avatar Josh Borrow
Browse files

Made IC script python3 cross-compatible

parent 1a81e823
Branches
Tags
1 merge request!611Cosmology pressure energy
...@@ -65,7 +65,7 @@ glass.close() ...@@ -65,7 +65,7 @@ glass.close()
# Total number of particles # Total number of particles
numPart = size(pos)/3 numPart = size(pos)/3
if numPart != numPart_1D**3: if numPart != numPart_1D**3:
print "Non-matching glass file" print("Non-matching glass file")
numPart = numPart_1D**3 numPart = numPart_1D**3
# Set box size and interparticle distance # Set box size and interparticle distance
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment