Skip to content

Commit

Permalink
Merge pull request #30 from microsoft/hanyang/cpu-support
Browse files Browse the repository at this point in the history
fix: missing device argument for cpu
  • Loading branch information
ZeroKnighting authored Dec 2, 2024
2 parents e036feb + 49668d3 commit 2a3378a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mattersim/forcefield/potential.py
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,7 @@ def __init__(
"""
super().__init__(**kwargs)
if potential is None:
self.potential = Potential.load()
self.potential = Potential.load(device=device)
else:
self.potential = potential
self.compute_stress = compute_stress
Expand Down

0 comments on commit 2a3378a

Please sign in to comment.