Skip to content

Commit 7b4b314

Browse files
committed
Merge branch 'develop' of https://github.com/deepmodeling/abacus-develop into docs
2 parents 5727760 + f084d42 commit 7b4b314

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

source/module_cell/module_symmetry/symmetry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ int Symmetry::standard_lat(
423423

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

428428
//---------------------------
429429
// 1. alpha == beta == gamma

source/module_cell/module_symmetry/symmetry_basic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ double Symmetry_Basic::check_diff(const double& x1, const double& x2)const
7373
double diff = x1 - x2;
7474
diff = fmod(diff + 100,1);
7575
//for reasons of safety
76-
if(fabs(diff - 1.0) < epsilon * 0.5)
76+
if(fabs(diff - 1.0) < epsilon)
7777
{
7878
diff = 0;
7979
}

source/module_esolver/esolver_gets.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "module_hamilt_lcao/hamilt_lcaodft/operator_lcao/operator_lcao.h"
99
#include "module_io/print_info.h"
1010
#include "module_io/write_HS_R.h"
11+
#include "module_io/cal_r_overlap_R.h"
1112

1213
namespace ModuleESolver
1314
{
@@ -128,6 +129,13 @@ void ESolver_GetS::runner(UnitCell& ucell, const int istep)
128129
std::cout << " The file is saved in " << fn << std::endl;
129130
ModuleIO::output_SR(pv, GlobalC::GridD, this->p_hamilt, fn);
130131

132+
if (PARAM.inp.out_mat_r)
133+
{
134+
cal_r_overlap_R r_matrix;
135+
r_matrix.init(pv, orb_);
136+
r_matrix.out_rR(istep);
137+
}
138+
131139
ModuleBase::timer::tick("ESolver_GetS", "runner");
132140
}
133141

0 commit comments

Comments
 (0)