Skip to content

Commit 63c3e04

Browse files
authored
Update types.jl
1 parent 2a8c3ce commit 63c3e04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ function System(crystal::Crystal{D};
679679
energy_units=u"kJ * mol^-1",
680680
k=default_k(energy_units),
681681
data=nothing) where D
682-
atoms = [Atom(index=i, charge=charge(a), mass=AtomsBase.mass(a))
682+
atoms = [Atom(index=i, charge=ustrip(charge(a)), mass=AtomsBase.mass(a))
683683
for (i, a) in enumerate(crystal.atoms)]
684684
atoms_data = [AtomData(element=String(atomic_symbol(a))) for a in crystal.atoms]
685685
coords = [SVector{D}(AtomsBase.position(crystal, i)) for i in 1:length(crystal)]

0 commit comments

Comments
 (0)