Skip to content

Commit

Permalink
Apply the same tolerance for qe2alm.cpp as interaction.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ttadano committed Nov 16, 2017
1 parent f03184d commit 5d413d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/qe2alm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ void get_pairs_of_minimum_distance(const int natmin, const int nat, int **map_p2

dist_min = distall[i][j][0].dist;
for (std::vector<DistInfo>::const_iterator it = distall[i][j].begin(); it != distall[i][j].end(); ++it) {
if (std::abs((*it).dist - dist_min) < eps6) {
if (std::abs((*it).dist - dist_min) < 1.e-3) {
mindist_pairs[i][j].push_back(DistInfo(*it));
}
}
Expand Down

0 comments on commit 5d413d9

Please sign in to comment.