Skip to content

Commit 9cc9858

Browse files
committed
fix bug in set_omega
1 parent 2890c43 commit 9cc9858

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/module_elecstate/module_charge/charge_init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void Charge::init_rho(elecstate::efermi& eferm_iout,
3232

3333
std::cout << " START CHARGE : " << PARAM.inp.init_chg << std::endl;
3434
//here we need to set the omega for the charge density
35-
set_omega(ucell.omega);
35+
set_omega(&ucell.omega);
3636

3737
bool read_error = false;
3838
if (PARAM.inp.init_chg == "file" || PARAM.inp.init_chg == "auto")

0 commit comments

Comments
 (0)