Skip to content

Commit f084d42

Browse files
authored
Feature: output mat of <phi|r|phi> with get_S (#5611)
1 parent f7b62a7 commit f084d42

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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
{
@@ -127,6 +128,13 @@ void ESolver_GetS::runner(UnitCell& ucell, const int istep)
127128
std::cout << " The file is saved in " << fn << std::endl;
128129
ModuleIO::output_SR(pv, GlobalC::GridD, this->p_hamilt, fn);
129130

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

0 commit comments

Comments
 (0)