Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: remove #include hsolver.h #5609

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading