Skip to content

Commit

Permalink
Enable the support of singular number of electrions in DeepKS orbital…
Browse files Browse the repository at this point in the history
… label
  • Loading branch information
Liu-RX authored Jan 2, 2025
1 parent c53f445 commit 252cb3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void LCAO_Deepks_Interface<TK, TR>::out_deepks_labels(const double& etot,

if (PARAM.inp.deepks_bandgap)
{
const int nocc = PARAM.inp.nelec / 2;
const int nocc = (PARAM.inp.nelec+1) / 2;
std::vector<double> o_tot(nks);
for (int iks = 0; iks < nks; ++iks)
{
Expand Down

0 comments on commit 252cb3b

Please sign in to comment.