Skip to content

Commit

Permalink
Fixed a bug in displace.py for ibrav=13 (QE).
Browse files Browse the repository at this point in the history
  • Loading branch information
ttadano committed Mar 4, 2016
1 parent 7182097 commit 9d88802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/displace.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def gen_lattice_vector(ibrav, celldm, list_CELL_PARAMETERS):
a = celldm[0]
b = celldm[0] * celldm[1]
c = celldm[0] * celldm[2]
gamma = math.acos(celldm[4])
gamma = math.acos(celldm[3])
lavec = np.array([[a / 2.0, 0.0, -c / 2.0],
[b * math.cos(gamma), b * math.sin(gamma), 0.0],
[a / 2.0, 0.0, c / 2.0]])
Expand Down

0 comments on commit 9d88802

Please sign in to comment.