Skip to content

Commit

Permalink
Merge branch 'fix_blob_test_mips' into 'master'
Browse files Browse the repository at this point in the history
Fix GitHub Issue #34

See merge request swift/swiftsim!1733
  • Loading branch information
MatthieuSchaller committed Jun 28, 2023
2 parents 1e1dc3e + bdfd901 commit 6c2cd49
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/HydroTests/BlobTest_3D/makeIC.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ def generate_cube(num_on_side, side_length=1.0):


def generate_bcc_lattice(num_on_side, side_length=1.0):
cube = generate_cube(num_on_side // 2, side_length)
num_per_cube = num_on_side // 2

mips = side_length / num_on_side
cube = generate_cube(num_per_cube, side_length)

mips = side_length / num_per_cube

positions = np.concatenate([cube, cube + mips * 0.5])

Expand Down

0 comments on commit 6c2cd49

Please sign in to comment.