Skip to content

Commit

Permalink
Fixed a bug in qe2alm.cpp.
Browse files Browse the repository at this point in the history
The bug caused a trouble when ibrav = 0.
This is now fixed.
  • Loading branch information
ttadano committed Dec 16, 2015
1 parent fabcdd5 commit b16f871
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/qe2alm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,14 @@ int main() {

if (ibrav == 0) {
for (i = 0; i < 3; ++i) {
ifs_fc2qe >> lavec[i][0] >> lavec[i][1] >> lavec[i][2];
ifs_fc2qe >> lavec[0][i] >> lavec[1][i] >> lavec[2][i];
}

for (i = 0; i < 3; ++i) {
for (j = 0; j < 3; ++j) {
lavec[i][j] *= celldm[0];
}
}
} else {
calc_lattice_vector(ibrav, celldm, lavec);
}
Expand Down

0 comments on commit b16f871

Please sign in to comment.