We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eef94c8 commit 926b30eCopy full SHA for 926b30e
src/torchpme/calculators/calculator.py
@@ -54,7 +54,12 @@ def _compute_rspace(
54
# contained in the neighbor list
55
with profiler.record_function("compute bare potential"):
56
if self.potential.smearing is None:
57
- potentials_bare = self.potential.from_dist(neighbor_distances)
+ if self.potential.exclusion_radius is None:
58
+ potentials_bare = self.potential.from_dist(neighbor_distances)
59
+ else:
60
+ potentials_bare = self.potential.from_dist(neighbor_distances) * (
61
+ 1 - self.potential.f_cutoff(neighbor_distances)
62
+ )
63
else:
64
potentials_bare = self.potential.sr_from_dist(neighbor_distances)
65
0 commit comments