Skip to content

Commit c7b6a5f

Browse files
committed
remove the extra write_wfc_pw in esolver_ks_pw
1 parent a5cf8aa commit c7b6a5f

File tree

3 files changed

+5
-17
lines changed

3 files changed

+5
-17
lines changed

source/module_esolver/esolver_ks_lcaopw.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#include "module_io/nscf_band.h"
66
#include "module_io/output_log.h"
77
#include "module_io/write_istate_info.h"
8-
#include "module_io/write_wfc_pw.h"
98

109
#include <iostream>
1110

source/module_esolver/esolver_ks_pw.cpp

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -709,17 +709,7 @@ void ESolver_KS_PW<T, Device>::after_scf(UnitCell& ucell, const int istep, const
709709
}
710710

711711
//------------------------------------------------------------------
712-
// 4) output wavefunctions in pw basis
713-
//------------------------------------------------------------------
714-
if (PARAM.inp.out_wfc_pw == 1 || PARAM.inp.out_wfc_pw == 2)
715-
{
716-
std::stringstream ssw;
717-
ssw << PARAM.globalv.global_out_dir << "WAVEFUNC";
718-
ModuleIO::write_wfc_pw(ssw.str(), this->psi[0], this->kv, this->pw_wfc);
719-
}
720-
721-
//------------------------------------------------------------------
722-
// 5) calculate band-decomposed (partial) charge density in pw basis
712+
// 4) calculate band-decomposed (partial) charge density in pw basis
723713
//------------------------------------------------------------------
724714
const std::vector<int> out_pchg = PARAM.inp.out_pchg;
725715
if (out_pchg.size() > 0)
@@ -748,7 +738,7 @@ void ESolver_KS_PW<T, Device>::after_scf(UnitCell& ucell, const int istep, const
748738
}
749739

750740
//------------------------------------------------------------------
751-
//! 6) calculate Wannier functions in pw basis
741+
//! 5) calculate Wannier functions in pw basis
752742
//------------------------------------------------------------------
753743
if (PARAM.inp.calculation == "nscf" && PARAM.inp.towannier90)
754744
{
@@ -766,7 +756,7 @@ void ESolver_KS_PW<T, Device>::after_scf(UnitCell& ucell, const int istep, const
766756
}
767757

768758
//------------------------------------------------------------------
769-
//! 7) calculate Berry phase polarization in pw basis
759+
//! 6) calculate Berry phase polarization in pw basis
770760
//------------------------------------------------------------------
771761
if (PARAM.inp.calculation == "nscf" && berryphase::berry_phase_flag && ModuleSymmetry::Symmetry::symm_flag != 1)
772762
{
@@ -777,7 +767,7 @@ void ESolver_KS_PW<T, Device>::after_scf(UnitCell& ucell, const int istep, const
777767
}
778768

779769
//------------------------------------------------------------------
780-
// 8) write spin constrian results in pw basis
770+
// 7) write spin constrian results in pw basis
781771
// spin constrain calculations, write atomic magnetization and magnetic force.
782772
//------------------------------------------------------------------
783773
if (PARAM.inp.sc_mag_switch)
@@ -789,7 +779,7 @@ void ESolver_KS_PW<T, Device>::after_scf(UnitCell& ucell, const int istep, const
789779
}
790780

791781
//------------------------------------------------------------------
792-
// 9) write onsite occupations for charge and magnetizations
782+
// 8) write onsite occupations for charge and magnetizations
793783
//------------------------------------------------------------------
794784
if (PARAM.inp.onsite_radius > 0)
795785
{ // float type has not been implemented

source/module_esolver/pw_others.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include "module_io/nscf_band.h"
77
#include "module_io/output_log.h"
88
#include "module_io/write_istate_info.h"
9-
#include "module_io/write_wfc_pw.h"
109

1110
#include <iostream>
1211

0 commit comments

Comments
 (0)