Skip to content

Commit 739816a

Browse files
committed
change ucell in pwdft/forces.cpp
1 parent feece0c commit 739816a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/module_hamilt_pw/hamilt_pwdft/forces.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#endif
2525

2626
template <typename FPTYPE, typename Device>
27-
void Forces<FPTYPE, Device>::cal_force(const UnitCell& ucell,
27+
void Forces<FPTYPE, Device>::cal_force(UnitCell& ucell,
2828
ModuleBase::matrix& force,
2929
const elecstate::ElecState& elec,
3030
ModulePW::PW_Basis* rho_basis,

source/module_hamilt_pw/hamilt_pwdft/forces.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Forces
3333
Forces(const int nat_in) : nat(nat_in){};
3434
~Forces(){};
3535

36-
void cal_force(const UnitCell& ucell,
36+
void cal_force(UnitCell& ucell,
3737
ModuleBase::matrix& force,
3838
const elecstate::ElecState& elec,
3939
ModulePW::PW_Basis* rho_basis,

0 commit comments

Comments
 (0)