Skip to content

Commit 30aa13d

Browse files
committed
update dos codes
1 parent d8dc7e4 commit 30aa13d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

source/module_esolver/esolver_ks_lcao.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
#include "esolver_ks_lcao.h"
22

3+
#include "module_io/write_dos_lcao.h" // write DOS and PDOS
4+
#include "module_io/write_proj_band_lcao.h" // projcted band structure
5+
36
#include "module_base/formatter.h"
47
#include "module_base/global_variable.h"
58
#include "module_base/tool_title.h"
69
#include "module_elecstate/elecstate_tools.h"
10+
711
#include "module_elecstate/module_dm/cal_dm_psi.h"
812
#include "module_hamilt_lcao/module_deltaspin/spin_constrain.h"
913
#include "module_hamilt_lcao/module_dftu/dftu.h"
@@ -35,7 +39,6 @@
3539
#include "module_io/write_vxc.hpp"
3640
#include "module_io/write_vxc_r.hpp"
3741

38-
//--------------temporary----------------------------
3942
#include "module_base/global_function.h"
4043
#include "module_cell/module_neighbor/sltk_grid_driver.h"
4144
#include "module_elecstate/cal_ux.h"
@@ -387,7 +390,6 @@ void ESolver_KS_LCAO<TK, TR>::cal_stress(UnitCell& ucell, ModuleBase::matrix& st
387390
//! mohan add 2024-05-11
388391
//------------------------------------------------------------------------------
389392

390-
#include "module_io/write_dos_lcao.h" // write DOS and PDOS
391393

392394
template <typename TK, typename TR>
393395
void ESolver_KS_LCAO<TK, TR>::after_all_runners(UnitCell& ucell)
@@ -399,7 +401,7 @@ void ESolver_KS_LCAO<TK, TR>::after_all_runners(UnitCell& ucell)
399401

400402
const int nspin0 = (PARAM.inp.nspin == 2) ? 2 : 1;
401403

402-
// 4) write projected band structure by jiyy-2022-4-20
404+
// 4) write projected band structure
403405
if (PARAM.inp.out_proj_band)
404406
{
405407
ModuleIO::write_proj_band_lcao(this->psi, this->pv, this->pelec, this->kv, ucell, this->p_hamilt);

source/module_esolver/lcao_after_scf.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include "module_io/write_dmr.h"
2525
#include "module_io/write_elecstat_pot.h"
2626
#include "module_io/write_istate_info.h"
27-
#include "module_io/write_proj_band_lcao.h"
2827
#include "module_io/write_wfc_nao.h"
2928
#include "module_io/cal_pLpR.h"
3029
#include "module_parameter/parameter.h"

source/module_io/write_dos_lcao.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
#include "cal_dos.h"
33
#include "cal_pdos_gamma.h"
44
#include "cal_pdos_multik.h"
5-
#include "nscf_fermi_surface"
6-
5+
#include "nscf_fermi_surf.h"
76
#include "module_parameter/parameter.h"
87

98
namespace ModuleIO
@@ -89,7 +88,7 @@ void write_dos_lcao(
8988
{
9089
std::stringstream ss3;
9190
ss3 << PARAM.globalv.global_out_dir << "fermi" << is << ".bxsf";
92-
nscf_fermi_surface(ss3.str(), nbands, eferm.ef, kv, ucell, ekb);
91+
nscf_fermi_surface(ss3.str(), nbands, energy_fermi.ef, kv, ucell, ekb);
9392
}
9493
}
9594

0 commit comments

Comments
 (0)