Skip to content

Commit

Permalink
Refactor: remove #include hsolver.h (deepmodeling#5609)
Browse files Browse the repository at this point in the history
* remove #include hsolver.h

* remove hsolver dependency
  • Loading branch information
haozhihan authored Nov 27, 2024
1 parent 664f996 commit 1527c37
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
3 changes: 2 additions & 1 deletion source/module_esolver/esolver_ks.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "module_cell/klist.h"
#include "module_elecstate/module_charge/charge_mixing.h"
#include "module_hamilt_general/hamilt.h"
#include "module_psi/wavefunc.h"
#include "module_hsolver/hsolver.h"
#include "module_io/cal_test.h"
#include "module_psi/psi.h"
Expand All @@ -15,8 +14,10 @@
#else
#include <chrono>
#endif

#include <cstring>
#include <fstream>

namespace ModuleESolver
{

Expand Down
2 changes: 1 addition & 1 deletion source/module_hamilt_pw/hamilt_pwdft/VNL_in_pw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "module_base/timer.h"
#include "module_hamilt_pw/hamilt_pwdft/global.h"
#include "module_hamilt_pw/hamilt_pwdft/kernels/vnl_op.h"
#include "module_psi/wavefunc.h"


pseudopot_cell_vnl::pseudopot_cell_vnl()
{
Expand Down
1 change: 1 addition & 0 deletions source/module_hsolver/hsolver.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "hsolver.h"

#include "module_parameter/parameter.h"

namespace hsolver
{

Expand Down
5 changes: 0 additions & 5 deletions source/module_hsolver/hsolver.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
#ifndef HSOLVER_H
#define HSOLVER_H

#include "module_base/macros.h"
#include "module_elecstate/elecstate.h"
#include "module_hamilt_general/hamilt.h"
#include "module_psi/wavefunc.h"
#include "module_hamilt_pw/hamilt_stodft/sto_wf.h"
#include "module_psi/psi.h"

#include <complex>

namespace hsolver
{
Expand Down
3 changes: 2 additions & 1 deletion source/module_hsolver/hsolver_lcao.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#ifndef HSOLVERLCAO_H
#define HSOLVERLCAO_H

#include "hsolver.h"
#include "module_elecstate/elecstate.h"
#include "module_hamilt_general/hamilt.h"
#include "module_basis/module_ao/parallel_orbitals.h"

namespace hsolver
Expand Down
3 changes: 2 additions & 1 deletion source/module_hsolver/hsolver_lcaopw.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#ifndef HSOLVERLIP_H
#define HSOLVERLIP_H

#include "hsolver.h"
#include "module_elecstate/elecstate.h"
#include "module_hamilt_general/hamilt.h"
#include "module_base/macros.h"
#include "module_base/module_device/types.h"
namespace hsolver
Expand Down
1 change: 0 additions & 1 deletion source/module_hsolver/hsolver_pw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "module_base/tool_quit.h"
#include "module_elecstate/elecstate_pw.h"
#include "module_hamilt_general/hamilt.h"
#include "module_psi/wavefunc.h"
#include "module_hsolver/diag_comm_info.h"
#include "module_hsolver/diago_bpcg.h"
#include "module_hsolver/diago_cg.h"
Expand Down
3 changes: 2 additions & 1 deletion source/module_hsolver/hsolver_pw.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#ifndef HSOLVERPW_H
#define HSOLVERPW_H

#include "hsolver.h"
#include "module_elecstate/elecstate.h"
#include "module_hamilt_general/hamilt.h"
#include "module_base/macros.h"
#include "module_basis/module_pw/pw_basis_k.h"
#include "module_psi/wavefunc.h"
Expand Down
3 changes: 2 additions & 1 deletion source/module_lr/esolver_lrtd_lcao.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
#include "module_parameter/input_parameter.h"
#include "module_cell/unitcell.h"
#include "module_hamilt_general/hamilt.h"
#include "module_hsolver/hsolver.h"
#include "module_elecstate/elecstate.h"
#include "module_hamilt_general/hamilt.h"
#include "module_elecstate/elecstate_lcao.h"

#include <vector> //future tensor
Expand Down

0 comments on commit 1527c37

Please sign in to comment.