Skip to content

Commit 878e0c4

Browse files
authored
Fix loading geometry.in in fractional coordinates (atom_frac) (#290)
modified: loadGeometryIN() in ppafm/io.py
1 parent 0684cca commit 878e0c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ppafm/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def loadGeometryIN(fname):
136136
elif ws[0] == "lattice_vector":
137137
lvec.append([float(ws[1]), float(ws[2]), float(ws[3])])
138138
elif ws[0] == "atom_frac" and len(lvec) == 3:
139-
xyzs.append(np.array(lvec) @ np.array([float(ws[1]), float(ws[2]), float(ws[3])]))
139+
xyzs.append(np.array([float(ws[1]), float(ws[2]), float(ws[3])]) @ np.array(lvec))
140140
Zs.append(elements.ELEMENT_DICT[ws[4]][0])
141141
elif ws[0] == "trust_radius":
142142
break

0 commit comments

Comments
 (0)