Skip to content

Commit

Permalink
Merge pull request deepmodeling#2 from dyzheng/fixbug
Browse files Browse the repository at this point in the history
fix: bug in projection mag output
  • Loading branch information
dyzheng authored Jul 24, 2024
2 parents 92b1951 + eaa145b commit d83a9c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/module_esolver/esolver_ks_lcao.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,7 @@ void ESolver_KS_LCAO<TK, TR>::cal_mag(const int istep, const bool print)
const hamilt::HContainer<double>* dmr
= dynamic_cast<const elecstate::ElecStateLCAO<TK>*>(this->pelec)->get_DM()->get_DMR_pointer(1);
std::vector<double> moments;
auto hR = new hamilt::HContainer<TR>(&(this->ParaV));
hamilt::HContainer<TR>* hR = dynamic_cast<hamilt::HamiltLCAO<TK, TR>*>(this->p_hamilt)->getHR();
auto sc_lambda = new hamilt::DeltaSpin<hamilt::OperatorLCAO<TK, TR>>(
nullptr,
this->kv.kvec_d,
Expand Down Expand Up @@ -1468,7 +1468,6 @@ void ESolver_KS_LCAO<TK, TR>::cal_mag(const int istep, const bool print)
}
}
delete sc_lambda;
delete hR;
}
else
{
Expand Down

0 comments on commit d83a9c1

Please sign in to comment.