Skip to content

Commit b1aaa4a

Browse files
committed
Bugfix in dense optimized solution.
1 parent 657cc83 commit b1aaa4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swiftgalaxy/iterator.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -453,13 +453,13 @@ def _eval_dense_optimized_solution(self):
453453
np.array(
454454
np.meshgrid(*[np.arange(gdi) + 0.5 for gdi in grid_dim], indexing="ij")
455455
)
456-
* sm.cell_size[:, np.newaxis, np.newaxis, np.newaxis]
456+
* (sm.cell_size * grid_element_dim)[:, np.newaxis, np.newaxis, np.newaxis]
457457
)
458458
centres_offset = (
459459
np.array(
460460
np.meshgrid(*[np.arange(gdi) + 1.0 for gdi in grid_dim], indexing="ij")
461461
)
462-
* sm.cell_size[:, np.newaxis, np.newaxis, np.newaxis]
462+
* (sm.cell_size * grid_element_dim)[:, np.newaxis, np.newaxis, np.newaxis]
463463
)
464464
unique_region_centres = cosmo_array(
465465
(centres_aligned, centres_offset)

0 commit comments

Comments
 (0)