Skip to content

Commit

Permalink
change number to GPa
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghan-microsoft committed Nov 28, 2024
1 parent 2959aa8 commit 0760936
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mattersim/forcefield/potential.py
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,9 @@ def forward(
output["forces"] = forces

if stress_grad is not None:
stresses = 1 / volume[:, None, None] * stress_grad * 160.21766208
stresses = (
1 / volume[:, None, None] * stress_grad / GPa
) # 1/GPa = 160.21766208
output["stresses"] = stresses

return output
Expand Down

0 comments on commit 0760936

Please sign in to comment.