@@ -35,7 +35,7 @@ void Force_Stress_LCAO<T>::getForceStress(const bool isforce,
3535 const bool isstress,
3636 const bool istestf,
3737 const bool istests,
38- const UnitCell& ucell,
38+ UnitCell& ucell,
3939 Parallel_Orbitals& pv,
4040 const elecstate::ElecState* pelec,
4141 const psi::Psi<T>* psi,
@@ -851,7 +851,7 @@ void Force_Stress_LCAO<T>::getForceStress(const bool isforce,
851851
852852// local pseudopotential, ewald, core correction, scc terms in force
853853template <typename T>
854- void Force_Stress_LCAO<T>::calForcePwPart(const UnitCell& ucell,
854+ void Force_Stress_LCAO<T>::calForcePwPart(UnitCell& ucell,
855855 ModuleBase::matrix& fvl_dvl,
856856 ModuleBase::matrix& fewalds,
857857 ModuleBase::matrix& fcc,
@@ -878,7 +878,7 @@ void Force_Stress_LCAO<T>::calForcePwPart(const UnitCell& ucell,
878878 // --------------------------------------------------------
879879 // force due to core correlation.
880880 // --------------------------------------------------------
881- f_pw.cal_force_cc (fcc, rhopw, chr, nlpp.numeric , GlobalC:: ucell);
881+ f_pw.cal_force_cc (fcc, rhopw, chr, nlpp.numeric , ucell);
882882 // --------------------------------------------------------
883883 // force due to self-consistent charge.
884884 // --------------------------------------------------------
0 commit comments