Skip to content

Commit

Permalink
fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
maki49 committed Oct 16, 2024
1 parent 68158c9 commit 218e8ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/module_hamilt_lcao/hamilt_lcaodft/edm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ elecstate::DensityMatrix<std::complex<double>, double> Force_LCAO<std::complex<d
{

// construct a DensityMatrix object
elecstate::DensityMatrix<std::complex<double>, double> edm(&kv, &pv, nspin);
const int nspin_dm = nspin == 2 ? 2 : 1;
elecstate::DensityMatrix<std::complex<double>, double> edm(&pv, nspin_dm, kv.kvec_d, kv.get_nks() / nspin_dm);

//--------------------------------------------
// calculate the energy density matrix here.
Expand Down

0 comments on commit 218e8ad

Please sign in to comment.