Skip to content

Commit 81cd871

Browse files
authored
Merge pull request #826 from dyzheng/new
Fix: deleted useless file, output right occupied band for soc case
2 parents ace48f6 + 03c4812 commit 81cd871

File tree

3 files changed

+1
-0
lines changed

3 files changed

+1
-0
lines changed

doc/abacus_manual.pdf

-307 KB
Binary file not shown.

source/src_pw/charge.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,6 +1220,7 @@ void Charge::cal_nelec(void)
12201220
// calculate number of bands (setup.f90)
12211221
//=======================================
12221222
double occupied_bands = static_cast<double>(nelec/ModuleBase::DEGSPIN);
1223+
if(GlobalV::LSPINORB==1) occupied_bands = static_cast<double>(nelec);
12231224

12241225
if( (occupied_bands - std::floor(occupied_bands)) > 0.0 )
12251226
{
-12 KB
Binary file not shown.

0 commit comments

Comments
 (0)