Skip to content

Commit a710a4a

Browse files
committed
Fix PW compile error
1 parent 4f99bb3 commit a710a4a

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

source/source_estate/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ list(APPEND objects
1313
module_pot/gatefield.cpp
1414
module_pot/efield.cpp
1515
module_pot/H_Hartree_pw.cpp
16+
module_pot/H_TDDFT_pw.cpp
1617
module_pot/pot_xc.cpp
1718
module_pot/pot_local.cpp
1819
module_pot/potential_new.cpp
@@ -22,6 +23,7 @@ list(APPEND objects
2223
module_pot/pot_sep.cpp
2324
module_pot/pot_xc_fdm.cpp
2425
module_pot/pot_cosikr.cpp
26+
module_pot/td_field.cpp
2527
module_charge/chgmixing.cpp
2628
module_charge/gint_precision_controller.cpp
2729
module_charge/charge.cpp
@@ -46,8 +48,6 @@ list(APPEND objects
4648
if(ENABLE_LCAO)
4749
list(APPEND objects
4850
elecstate_lcao.cpp
49-
module_pot/H_TDDFT_pw.cpp
50-
module_pot/td_field.cpp
5151
module_dm/init_dm.cpp
5252
module_dm/density_matrix.cpp
5353
module_dm/density_matrix_io.cpp

source/source_estate/module_pot/potential_types.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
#include "source_base/tool_quit.h"
1313
#include "source_base/tool_title.h"
1414
#include "source_io/module_parameter/parameter.h"
15-
#ifdef __LCAO
1615
#include "H_TDDFT_pw.h"
17-
#endif
1816
#ifdef __MLALGO
1917
#include "pot_ml_exx.h"
2018
#endif
@@ -49,14 +47,12 @@ PotBase* Potential::get_pot_type(const std::string& pot_type)
4947
{
5048
return new PotGate(this->rho_basis_, this->ucell_);
5149
}
52-
#ifdef __LCAO
5350
else if (pot_type == "tddft")
5451
{
5552
// The RT-TDDFT ESolver injects this manager before potential
5653
// registration so the potential does not own a separate time counter.
5754
return new H_TDDFT_pw(this->rho_basis_, this->ucell_, this->td_field_manager_);
5855
}
59-
#endif
6056
#ifdef __MLALGO
6157
else if (pot_type == "ml_exx")
6258
{

0 commit comments

Comments
 (0)