Skip to content

Commit

Permalink
fix a condition narrowing symmetryprec
Browse files Browse the repository at this point in the history
  • Loading branch information
maki49 committed Jul 19, 2023
1 parent b2ccdd7 commit bff84fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/module_cell/module_symmetry/symmetry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ void Symmetry::analy_sys(const UnitCell &ucell, std::ofstream &ofs_running)
lattice_to_group(tmp_nrot, tmp_nrotk, no_out);
precs_try.push_back(epsilon);
nrotks_try.push_back(tmp_nrotk);
} while (tmp_nrotk >= nrotks_try[0] && precs_try.size() < 5);
} while (tmp_nrotk >= nrotks_try[0] && epsilon > epsilon_input * 1.001 && precs_try.size() < 5);
int valid_index = (tmp_nrotk < nrotks_try[0]) ? nrotks_try.size() - 2 : nrotks_try.size() - 1;
#ifdef __DEBUG
assert(valid_index >= 0);
Expand Down

0 comments on commit bff84fd

Please sign in to comment.