We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7791c4f commit 9fc9671Copy full SHA for 9fc9671
source/src_pw/charge.cpp
@@ -1220,6 +1220,7 @@ void Charge::cal_nelec(void)
1220
// calculate number of bands (setup.f90)
1221
//=======================================
1222
double occupied_bands = static_cast<double>(nelec/ModuleBase::DEGSPIN);
1223
+ if(GlobalV::LSPINORB==1) occupied_bands = static_cast<double>(nelec);
1224
1225
if( (occupied_bands - std::floor(occupied_bands)) > 0.0 )
1226
{
tests/integrate/260_NO_15_PK_PU_AF/.STRU.swp
-12 KB
0 commit comments