|
11 | 11 | #include "source_cell/module_symmetry/symmetry.h" |
12 | 12 | #include "source_pw/module_pwdft/global.h" |
13 | 13 | #include "source_io/numerical_basis_jyjy.h" |
14 | | -#include "winput.h" |
15 | 14 |
|
16 | 15 | #include <algorithm> |
17 | 16 | #include <cstring> |
@@ -82,13 +81,12 @@ void Numerical_Basis::output_overlap(const psi::Psi<std::complex<double>>& psi, |
82 | 81 | this->mu_index = this->init_mu_index(ucell); |
83 | 82 | this->init_label = true; |
84 | 83 | } |
85 | | - ModuleBase::GlobalFunc::MAKE_DIR(winput::spillage_outdir); |
| 84 | + ModuleBase::GlobalFunc::MAKE_DIR(PARAM.inp.spillage_outdir); |
86 | 85 | for (int derivative_order = 0; derivative_order <= 1; ++derivative_order) // Peize Lin add 2020.04.23 |
87 | 86 | { |
88 | 87 | std::ofstream ofs; |
89 | 88 | std::stringstream ss; |
90 | | - // the parameter 'winput::spillage_outdir' is read from INPUTw. |
91 | | - ss << winput::spillage_outdir << "/"; |
| 89 | + ss << PARAM.inp.spillage_outdir << "/"; |
92 | 90 |
|
93 | 91 | if (PARAM.inp.bessel_nao_rcuts.size() > 1) |
94 | 92 | { |
@@ -134,7 +132,7 @@ void Numerical_Basis::output_overlap(const psi::Psi<std::complex<double>>& psi, |
134 | 132 | ModuleBase::GlobalFunc::DONE(GlobalV::ofs_running, "cal_overlap_Q"); |
135 | 133 |
|
136 | 134 | // (2) generate Sq matrix if necessary. |
137 | | - if (winput::out_spillage == 2) |
| 135 | + if (PARAM.inp.out_spillage == 2) |
138 | 136 | { |
139 | 137 | #ifndef __LCAO |
140 | 138 | // compute <jY|jY> in plane-wave basis |
@@ -197,7 +195,7 @@ void Numerical_Basis::output_overlap(const psi::Psi<std::complex<double>>& psi, |
197 | 195 | ModuleBase::WARNING_QUIT("Numerical_Basis", "Failed to write overlap Q to file."); |
198 | 196 | } |
199 | 197 | // because one stage of file io complete, re-check the file status. |
200 | | - if (winput::out_spillage == 2) |
| 198 | + if (PARAM.inp.out_spillage == 2) |
201 | 199 | { |
202 | 200 | // caution: this is the largest matrix to be output, always flush |
203 | 201 | if (ofs.good()) { |
|
0 commit comments