Skip to content

Commit 9a2822c

Browse files
committed
fix bugs
1 parent 0253953 commit 9a2822c

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

source/source_esolver/esolver_ks_lcao.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,8 @@ void ESolver_KS_LCAO<TK, TR>::after_all_runners(UnitCell& ucell)
393393
this->orb_, this->pw_rho, this->pw_rhod,
394394
this->sf, this->locpp.vloc,
395395
#ifdef __EXX
396-
*this->exd,
397-
*this->exc,
396+
this->exd,
397+
this->exc,
398398
#endif
399399
this->solvent);
400400

source/source_io/ctrl_runner_lcao.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
#include "source_io/write_vxc_r.hpp"
1111

1212
// functions
13-
#ifdef __EXX
14-
#include "source_lcao/module_ri/Exx_LRI_interface.h" // use EXX codes
15-
#include "source_lcao/module_ri/RPA_LRI.h" // use RPA code
16-
#endif
13+
//#ifdef __EXX
14+
//#include "source_lcao/module_ri/Exx_LRI_interface.h" // use EXX codes
15+
//#include "source_lcao/module_ri/RPA_LRI.h" // use RPA code
16+
//#endif
1717

1818
namespace ModuleIO
1919
{
@@ -38,8 +38,8 @@ void ctrl_runner_lcao(UnitCell& ucell, // unitcell
3838
Structure_Factor &sf, // structure factor
3939
ModuleBase::matrix &vloc, // local pseudopotential
4040
#ifdef __EXX
41-
Exx_LRI_Interface<TK, double>& exd,
42-
Exx_LRI_Interface<TK, std::complex<double>>& exc,
41+
std::shared_ptr<Exx_LRI_Interface<TK, double>> exd,
42+
std::shared_ptr<Exx_LRI_Interface<TK, std::complex<double>>> exc,
4343
#endif
4444
surchem &solvent) // solvent model
4545
{
@@ -166,8 +166,8 @@ template void ModuleIO::ctrl_runner_lcao<double, double>(UnitCell& ucell, /
166166
Structure_Factor &sf, // structure factor
167167
ModuleBase::matrix &vloc, // local pseudopotential
168168
#ifdef __EXX
169-
Exx_LRI_Interface<double, double>& exd,
170-
Exx_LRI_Interface<double, std::complex<double>>& exc,
169+
std::shared_ptr<Exx_LRI_Interface<double, double>> exd,
170+
std::shared_ptr<Exx_LRI_Interface<double, std::complex<double>>> exc,
171171
#endif
172172
surchem &solvent); // solvent model
173173

@@ -190,8 +190,8 @@ template void ctrl_runner_lcao<std::complex<double>, double>(UnitCell& ucell,
190190
Structure_Factor &sf, // structure factor
191191
ModuleBase::matrix &vloc, // local pseudopotential
192192
#ifdef __EXX
193-
Exx_LRI_Interface<std::complex<double>, double>& exd,
194-
Exx_LRI_Interface<std::complex<double>, std::complex<double>>& exc,
193+
std::shared_ptr<Exx_LRI_Interface<std::complex<double>, double>> exd,
194+
std::shared_ptr<Exx_LRI_Interface<std::complex<double>, std::complex<double>>> exc,
195195
#endif
196196
surchem &solvent); // solvent model
197197

@@ -214,8 +214,8 @@ template void ctrl_runner_lcao<std::complex<double>, std::complex<double>>(UnitC
214214
Structure_Factor &sf, // structure factor
215215
ModuleBase::matrix &vloc, // local pseudopotential
216216
#ifdef __EXX
217-
Exx_LRI_Interface<std::complex<double>, double>& exd,
218-
Exx_LRI_Interface<std::complex<double>, std::complex<double>>& exc,
217+
std::shared_ptr<Exx_LRI_Interface<std::complex<double>, double>> exd,
218+
std::shared_ptr<Exx_LRI_Interface<std::complex<double>, std::complex<double>>> exc,
219219
#endif
220220
surchem &solvent); // solvent model
221221

source/source_io/ctrl_runner_lcao.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ void ctrl_runner_lcao(UnitCell& ucell, // unitcell
3535
Structure_Factor &sf, // structure factor
3636
ModuleBase::matrix &vloc, // local pseudopotential
3737
#ifdef __EXX
38-
Exx_LRI_Interface<TK, double>& exd,
39-
Exx_LRI_Interface<TK, std::complex<double>>& exc,
38+
std::shared_ptr<Exx_LRI_Interface<TK, double>> exd,
39+
std::shared_ptr<Exx_LRI_Interface<TK, std::complex<double>>> exc,
4040
#endif
4141
surchem &solvent); // solvent model
4242

0 commit comments

Comments
 (0)