Skip to content

Commit ab44625

Browse files
authored
Merge pull request #2 from OpenBioSim/fix_1
Fix issue #1
2 parents e9b7c4d + 0916998 commit ab44625

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/loch/_kernels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@
498498
water[2] = 0.0f;
499499
500500
// Shift the other atoms by the appropriate amount.
501-
for (int i = 0; i < 3; i++)
501+
for (int i = 0; i < num_points; i++)
502502
{
503503
water[i*3 + 0] = water_template[i*3 + 0] - water_template[0];
504504
water[i*3 + 1] = water_template[i*3 + 1] - water_template[1];

src/loch/_sampler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2025,7 +2025,7 @@ def _accept_insertion(
20252025

20262026
# Get the new water positions.
20272027
water_positions = self._water_positions.get().reshape(
2028-
(self._batch_size, 3, self._num_points)
2028+
(self._batch_size, self._num_points, 3)
20292029
)[idx]
20302030

20312031
# Update the water state.

0 commit comments

Comments
 (0)