Skip to content

Commit cc12a42

Browse files
committed
An undocumented factor of 2 discovered in the LAMMPS source code thanks to @acroy. #47
1 parent 2b53caa commit cc12a42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lammps_interface/lammps_potentials.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,11 +342,11 @@ def __init__(self):
342342

343343
def __str__(self):
344344
if self.reduced:
345-
return "%15.6f %15i %15i"%(self.C,
345+
return "%15.6f %15i %15i"%(self.C/2.,
346346
self.B,
347347
self.n)
348348
return "%28s %15.6f %15i %15i"%(self.name,
349-
self.C,
349+
self.C/2.,
350350
self.B,
351351
self.n)
352352

0 commit comments

Comments
 (0)