Skip to content

Commit

Permalink
[pre-commit.ci lite] apply automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] authored Jun 26, 2024
1 parent a71c26b commit 8375896
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/module_esolver/esolver_ks_pw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,8 @@ template <typename T, typename Device>
void ESolver_KS_PW<T, Device>::cal_force(ModuleBase::matrix& force)
{
Forces<double, Device> ff(GlobalC::ucell.nat);
if (this->__kspw_psi != nullptr && GlobalV::precision_flag == "single") {
if (this->__kspw_psi != nullptr && GlobalV::precision_flag == "single")
{
delete reinterpret_cast<psi::Psi<std::complex<double>, Device>*>(this->__kspw_psi);
}

Expand All @@ -898,7 +899,8 @@ template <typename T, typename Device>
void ESolver_KS_PW<T, Device>::cal_stress(ModuleBase::matrix& stress)
{
Stress_PW<double, Device> ss(this->pelec);
if (this->__kspw_psi != nullptr && GlobalV::precision_flag == "single") {
if (this->__kspw_psi != nullptr && GlobalV::precision_flag == "single")
{
delete reinterpret_cast<psi::Psi<std::complex<double>, Device>*>(this->__kspw_psi);
}

Expand Down

0 comments on commit 8375896

Please sign in to comment.