Skip to content

Commit 64f1757

Browse files
committed
update estate
1 parent e493841 commit 64f1757

File tree

9 files changed

+13
-57
lines changed

9 files changed

+13
-57
lines changed

source/Makefile.Objects

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ OBJS_ELECSTAT=elecstate.o\
252252
update_pot.o\
253253

254254
OBJS_ELECSTAT_LCAO=elecstate_lcao.o\
255-
elecstate_lcao_cal_tau.o\
256255
setup_dm.o\
257256
density_matrix.o\
258257
density_matrix_io.o\

source/source_estate/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ list(APPEND objects
4545
if(ENABLE_LCAO)
4646
list(APPEND objects
4747
elecstate_lcao.cpp
48-
elecstate_lcao_cal_tau.cpp
4948
module_pot/H_TDDFT_pw.cpp
5049
module_dm/setup_dm.cpp
5150
module_dm/density_matrix.cpp

source/source_estate/elecstate.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ void ElecState::init_scf(const int istep,
5454
}
5555

5656

57-
void ElecState::init_ks(Charge* chg_in, // pointer for class Charge
57+
void ElecState::init_ks(Charge* chr_in, // pointer for class Charge
5858
const K_Vectors* klist_in,
5959
int nk_in,
6060
ModulePW::PW_Basis* rhopw_in,
6161
const ModulePW::PW_Basis_Big* bigpw_in)
6262
{
63-
this->charge = chg_in;
63+
this->charge = chr_in;
6464
this->klist = klist_in;
6565
this->charge->set_rhopw(rhopw_in);
6666
this->bigpw = bigpw_in;

source/source_estate/elecstate.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ class ElecState
1717
ElecState()
1818
{
1919
}
20-
ElecState(Charge* charge_in, ModulePW::PW_Basis* rhopw_in, ModulePW::PW_Basis_Big* bigpw_in)
20+
ElecState(Charge* chr_in, ModulePW::PW_Basis* rhopw_in, ModulePW::PW_Basis_Big* bigpw_in)
2121
{
22-
this->charge = charge_in;
22+
this->charge = chr_in;
2323
this->charge->set_rhopw(rhopw_in);
2424
this->bigpw = bigpw_in;
2525
this->eferm.two_efermi = PARAM.globalv.two_fermi;
@@ -32,7 +32,7 @@ class ElecState
3232
this->pot = nullptr;
3333
}
3434
}
35-
void init_ks(Charge* chg_in, // pointer for class Charge
35+
void init_ks(Charge* chr_in, // pointer for class Charge
3636
const K_Vectors* klist_in,
3737
int nk_in, // number of k points
3838
ModulePW::PW_Basis* rhopw_in,

source/source_estate/elecstate_lcao.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ class ElecStateLCAO : public ElecState
1515
ElecStateLCAO()
1616
{
1717
} // will be called by ElecStateLCAO_TDDFT
18-
ElecStateLCAO(Charge* chg_in,
18+
ElecStateLCAO(Charge* chr_in,
1919
const K_Vectors* klist_in,
2020
int nks_in,
2121
ModulePW::PW_Basis* rhopw_in,
2222
ModulePW::PW_Basis_Big* bigpw_in)
2323
{
24-
init_ks(chg_in, klist_in, nks_in, rhopw_in, bigpw_in);
24+
init_ks(chr_in, klist_in, nks_in, rhopw_in, bigpw_in);
2525
this->classname = "ElecStateLCAO";
2626
}
2727

source/source_estate/elecstate_lcao_cal_tau.cpp

Lines changed: 0 additions & 42 deletions
This file was deleted.

source/source_estate/elecstate_pw.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace elecstate {
1313

1414
template <typename T, typename Device>
1515
ElecStatePW<T, Device>::ElecStatePW(ModulePW::PW_Basis_K* wfc_basis_in,
16-
Charge* chg_in,
16+
Charge* chr_in,
1717
K_Vectors* pkv_in,
1818
UnitCell* ucell_in,
1919
pseudopot_cell_vnl* ppcell_in,
@@ -26,7 +26,7 @@ ElecStatePW<T, Device>::ElecStatePW(ModulePW::PW_Basis_K* wfc_basis_in,
2626
this->rhopw_smooth = rhopw_in;
2727
this->ppcell = ppcell_in;
2828
this->ucell = ucell_in;
29-
this->init_ks(chg_in, pkv_in, pkv_in->get_nks(), rhodpw_in, bigpw_in);
29+
this->init_ks(chr_in, pkv_in, pkv_in->get_nks(), rhodpw_in, bigpw_in);
3030
}
3131

3232
template<typename T, typename Device>

source/source_estate/elecstate_pw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ElecStatePW : public ElecState
2020

2121
public:
2222
ElecStatePW(ModulePW::PW_Basis_K* wfc_basis_in,
23-
Charge* chg_in,
23+
Charge* chr_in,
2424
K_Vectors* pkv_in,
2525
UnitCell* ucell_in,
2626
pseudopot_cell_vnl* ppcell_in,

source/source_estate/elecstate_pw_sdft.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ class ElecStatePW_SDFT : public ElecStatePW<T, Device>
88
{
99
public:
1010
ElecStatePW_SDFT(ModulePW::PW_Basis_K* wfc_basis_in,
11-
Charge* chg_in,
11+
Charge* chr_in,
1212
K_Vectors* pkv_in,
1313
UnitCell* ucell_in,
1414
pseudopot_cell_vnl* ppcell_in,
1515
ModulePW::PW_Basis* rhodpw_in,
1616
ModulePW::PW_Basis* rhopw_in,
1717
ModulePW::PW_Basis_Big* bigpw_in)
1818
: ElecStatePW<T,
19-
Device>(wfc_basis_in, chg_in, pkv_in, ucell_in, ppcell_in, rhodpw_in, rhopw_in, bigpw_in)
19+
Device>(wfc_basis_in, chr_in, pkv_in, ucell_in, ppcell_in, rhodpw_in, rhopw_in, bigpw_in)
2020
{
2121
this->classname = "ElecStatePW_SDFT";
2222
}
@@ -27,4 +27,4 @@ class ElecStatePW_SDFT : public ElecStatePW<T, Device>
2727
using castmem_var_d2h_op = base_device::memory::cast_memory_op<double, Real, base_device::DEVICE_CPU, Device>;
2828
};
2929
} // namespace elecstate
30-
#endif
30+
#endif

0 commit comments

Comments
 (0)