Skip to content

Commit 3459a20

Browse files
dyzhengdyzheng
andcommitted
Fix: output correct number of spin-down electrons (#1708)
Co-authored-by: dyzheng <[email protected]>
1 parent 115436d commit 3459a20

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/module_elecstate/potentials/potential_new.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void Potential::pot_register(std::vector<std::string>& components_list)
118118
break;
119119
}
120120
this->components.push_back(tmp);
121-
GlobalV::ofs_running << "Successful completion of Potential's registration : " << comp << std::endl;
121+
// GlobalV::ofs_running << "Successful completion of Potential's registration : " << comp << std::endl;
122122
}
123123

124124
// after register, reset fixed_done to false

source/src_pw/magnetism.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void Magnetism::compute_magnetization(const Charge* const chr, double* nelec_spi
4646
nelec_spin[0] = (GlobalV::nelec + this->tot_magnetization) / 2;
4747
nelec_spin[1] = (GlobalV::nelec - this->tot_magnetization) / 2;
4848
ModuleBase::GlobalFunc::OUT(GlobalV::ofs_running,"nelec for spin up", nelec_spin[0]);
49-
ModuleBase::GlobalFunc::OUT(GlobalV::ofs_running,"nelec for spin down", nelec_spin[0]);
49+
ModuleBase::GlobalFunc::OUT(GlobalV::ofs_running,"nelec for spin down", nelec_spin[1]);
5050
}
5151
}
5252

0 commit comments

Comments
 (0)