Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -423,7 +423,7 @@ int Symmetry::standard_lat(

Symm_Other::right_hand_sense(a, b, c);
ModuleBase::GlobalFunc::ZEROS(cel_const, 6);
const double small = 1.0e-5;
const double small = PARAM.inp.symmetry_prec;

//---------------------------
// 1. alpha == beta == gamma
Expand Down
2 changes: 1 addition & 1 deletion source/module_cell/module_symmetry/symmetry_basic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ double Symmetry_Basic::check_diff(const double& x1, const double& x2)const
double diff = x1 - x2;
diff = fmod(diff + 100,1);
//for reasons of safety
if(fabs(diff - 1.0) < epsilon * 0.5)
if(fabs(diff - 1.0) < epsilon)
{
diff = 0;
}
Expand Down
Loading