We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e9b7c4d + 0916998 commit ab44625Copy full SHA for ab44625
2 files changed
src/loch/_kernels.py
@@ -498,7 +498,7 @@
498
water[2] = 0.0f;
499
500
// Shift the other atoms by the appropriate amount.
501
- for (int i = 0; i < 3; i++)
+ for (int i = 0; i < num_points; i++)
502
{
503
water[i*3 + 0] = water_template[i*3 + 0] - water_template[0];
504
water[i*3 + 1] = water_template[i*3 + 1] - water_template[1];
src/loch/_sampler.py
@@ -2025,7 +2025,7 @@ def _accept_insertion(
2025
2026
# Get the new water positions.
2027
water_positions = self._water_positions.get().reshape(
2028
- (self._batch_size, 3, self._num_points)
+ (self._batch_size, self._num_points, 3)
2029
)[idx]
2030
2031
# Update the water state.
0 commit comments