Skip to content

Commit 0b18f08

Browse files
committed
change ucell in module_rmdft
1 parent a67ab70 commit 0b18f08

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

source/module_rdmft/rdmft_pot.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void RDMFT<TK, TR>::cal_V_TV()
5555
hsk_TV,
5656
kv->kvec_d,
5757
HR_TV,
58-
&GlobalC::ucell,
58+
ucell,
5959
orb->cutoffs(),
6060
&GlobalC::GridD,
6161
two_center_bundle->kinetic_orb.get()
@@ -65,7 +65,7 @@ void RDMFT<TK, TR>::cal_V_TV()
6565
hsk_TV,
6666
kv->kvec_d,
6767
HR_TV,
68-
&GlobalC::ucell,
68+
ucell,
6969
orb->cutoffs(),
7070
&GlobalC::GridD,
7171
two_center_bundle->overlap_orb_beta.get()
@@ -79,7 +79,7 @@ void RDMFT<TK, TR>::cal_V_TV()
7979
kv->kvec_d,
8080
this->pelec->pot,
8181
HR_TV,
82-
&GlobalC::ucell,
82+
ucell,
8383
orb->cutoffs(),
8484
&GlobalC::GridD,
8585
nspin,
@@ -98,7 +98,7 @@ void RDMFT<TK, TR>::cal_V_TV()
9898
kv->kvec_d,
9999
this->pelec->pot,
100100
HR_TV,
101-
&GlobalC::ucell,
101+
ucell,
102102
orb->cutoffs(),
103103
&GlobalC::GridD,
104104
nspin,
@@ -131,7 +131,7 @@ void RDMFT<TK, TR>::cal_V_hartree()
131131
kv->kvec_d,
132132
this->pelec->pot,
133133
HR_hartree,
134-
&GlobalC::ucell,
134+
ucell,
135135
orb->cutoffs(),
136136
&GlobalC::GridD,
137137
nspin,
@@ -151,7 +151,7 @@ void RDMFT<TK, TR>::cal_V_hartree()
151151
kv->kvec_d,
152152
this->pelec->pot,
153153
HR_hartree,
154-
&GlobalC::ucell,
154+
ucell,
155155
orb->cutoffs(),
156156
&GlobalC::GridD,
157157
nspin,
@@ -182,7 +182,7 @@ void RDMFT<TK, TR>::cal_V_XC()
182182

183183
// elecstate::DensityMatrix<TK, double> DM_test(ParaV, nspin, kv->kvec_d, nk_total);
184184
// elecstate::cal_dm_psi(ParaV, wg, wfc, DM_test);
185-
// DM_test.init_DMR(&GlobalC::GridD, &GlobalC::ucell);
185+
// DM_test.init_DMR(&GlobalC::GridD, ucell);
186186
// DM_test.cal_DMR();
187187

188188
// // compare DM_XC and DM get in update_charge(or ABACUS)
@@ -215,7 +215,7 @@ void RDMFT<TK, TR>::cal_V_XC()
215215
kv->kvec_d,
216216
this->pelec->pot,
217217
HR_dft_XC,
218-
&GlobalC::ucell,
218+
ucell,
219219
orb->cutoffs(),
220220
&GlobalC::GridD,
221221
nspin,
@@ -237,7 +237,7 @@ void RDMFT<TK, TR>::cal_V_XC()
237237
kv->kvec_d,
238238
this->pelec->pot,
239239
HR_dft_XC,
240-
&GlobalC::ucell,
240+
ucell,
241241
orb->cutoffs(),
242242
&GlobalC::GridD,
243243
nspin,

source/module_rdmft/update_state_rdmft.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ void RDMFT<TK, TR>::update_charge()
9494
// calculate DMK and DMR
9595
elecstate::DensityMatrix<TK, double> DM_gamma_only(ParaV, nspin);
9696
elecstate::cal_dm_psi(ParaV, wg, wfc, DM_gamma_only);
97-
DM_gamma_only.init_DMR(&GlobalC::GridD, &GlobalC::ucell);
97+
DM_gamma_only.init_DMR(&GlobalC::GridD, ucell);
9898
DM_gamma_only.cal_DMR();
9999

100100
for (int is = 0; is < nspin; is++)
@@ -124,7 +124,7 @@ void RDMFT<TK, TR>::update_charge()
124124
// calculate DMK and DMR
125125
elecstate::DensityMatrix<TK, double> DM(ParaV, nspin, kv->kvec_d, nk_total);
126126
elecstate::cal_dm_psi(ParaV, wg, wfc, DM);
127-
DM.init_DMR(&GlobalC::GridD, &GlobalC::ucell);
127+
DM.init_DMR(&GlobalC::GridD, ucell);
128128
DM.cal_DMR();
129129

130130
for (int is = 0; is < nspin; is++)

0 commit comments

Comments
 (0)