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 9438146 commit f8db2b9Copy full SHA for f8db2b9
source/module_hamilt_lcao/module_dftu/dftu_io.cpp
@@ -55,7 +55,7 @@ void DFTU::output(const UnitCell &ucell)
55
56
//Write onsite.dm
57
std::ofstream ofdftu;
58
- if(PARAM.inp.out_chg[0]){
+ if(PARAM.inp.out_chg[0] != -1){
59
if(GlobalV::MY_RANK == 0){
60
ofdftu.open(PARAM.globalv.global_out_dir + "onsite.dm");
61
}
@@ -309,7 +309,7 @@ void DFTU::read_occup_m(const UnitCell& ucell,
309
310
if (PARAM.inp.nspin == 1 || PARAM.inp.nspin == 2)
311
{
312
- for (int is = 0; is < 2; is++)
+ for (int is = 0; is < PARAM.inp.nspin; is++)
313
314
ifdftu >> word;
315
if (strcmp("spin", word) == 0)
0 commit comments