Skip to content

Commit 03c335b

Browse files
committed
fix : 1, out_mat_hs reference changed in doc; 2, deleted redundant output for density matrix format convert
1 parent 7db9e41 commit 03c335b

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

doc/input-main.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ This part of variables are used to control the output of properties.
813813
814814
- out_mat_hs<a id="out_mat_hs"></a>
815815
- *Type*: Boolean
816-
- *Description*: Only for LCAO calculations. When set to 1, ABACUS will generate two files `data-H` and `data-S` that store the Hamiltonian and S matrix in k space, respectively.
816+
- *Description*: Only for LCAO calculations. When set to 1, ABACUS will generate two lists of files `data-$k-H` and `data-$k-S` that store the Hamiltonian and S matrix for each k point in k space, respectively.
817817
- *Default*: 0
818818
819819
[back to top](#input-file)

source/src_lcao/DM_gamma.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ void Local_Orbital_Charge::cal_dk_gamma_from_2D(void)
330330
// GlobalV::ofs_running<<"DM(1,0)"<<wfc_dm_2d.dm_gamma[is](0,1)<<" ";
331331
// GlobalV::ofs_running<<"DM(1,1)"<<wfc_dm_2d.dm_gamma[is](1,1)<<std::endl;
332332
// }
333-
GlobalV::ofs_running<<"2D block parameters:\n"<<"nblk: "<<this->ParaV->nb<<std::endl;
333+
/*GlobalV::ofs_running<<"2D block parameters:\n"<<"nblk: "<<this->ParaV->nb<<std::endl;
334334
GlobalV::ofs_running<<"DM in 2D format:\n_________________________________________\n";
335335
for(int i=0; i<this->dm_gamma[is].nr; ++i)
336336
{
@@ -340,7 +340,7 @@ void Local_Orbital_Charge::cal_dk_gamma_from_2D(void)
340340
}
341341
GlobalV::ofs_running<<std::endl;
342342
}
343-
GlobalV::ofs_running<<"=========================================\n";
343+
GlobalV::ofs_running<<"=========================================\n";*/
344344

345345
// put data from dm_gamma[is] to sender index
346346
int nNONZERO=0;
@@ -406,7 +406,7 @@ void Local_Orbital_Charge::cal_dk_gamma_from_2D(void)
406406
// }
407407
//GlobalV::ofs_running<<DM[0][0][0]<<" "<<DM[0][0][1]<<std::endl;
408408
//GlobalV::ofs_running<<DM[0][1][0]<<" "<<DM[0][1][1]<<std::endl;
409-
GlobalV::ofs_running<<"DM in local grid:\n_________________________________________\n";
409+
/*GlobalV::ofs_running<<"DM in local grid:\n_________________________________________\n";
410410
for(int i=0; i<GlobalV::NLOCAL; ++i)
411411
{
412412
int ii=GlobalC::GridT.trace_lo[i];
@@ -419,7 +419,7 @@ void Local_Orbital_Charge::cal_dk_gamma_from_2D(void)
419419
}
420420
GlobalV::ofs_running<<std::endl;
421421
}
422-
GlobalV::ofs_running<<"=========================================\n";
422+
GlobalV::ofs_running<<"=========================================\n";*/
423423

424424
}
425425
ModuleBase::timer::tick("LCAO_Charge","dm_2dTOgrid");
@@ -589,7 +589,7 @@ void Local_Orbital_Charge::cal_dk_gamma(void)
589589
} // end for col_count
590590
} // end for row_count
591591

592-
GlobalV::ofs_running<<"DM[0][0:1][0:1] in cal_dk_gamma:"<<std::endl;
592+
/*GlobalV::ofs_running<<"DM[0][0:1][0:1] in cal_dk_gamma:"<<std::endl;
593593
594594
int idx0=GlobalC::GridT.trace_lo[0];
595595
int idx1=GlobalC::GridT.trace_lo[1];
@@ -606,7 +606,7 @@ void Local_Orbital_Charge::cal_dk_gamma(void)
606606
if(idx1>=0)
607607
{
608608
GlobalV::ofs_running<<"DM(1,1)"<<DM[is][idx1][idx1]<<std::endl;
609-
}
609+
}*/
610610
} // end for is
611611
#endif //2015-09-06, xiaohui
612612

tests/integrate/tools/catch_properties.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ if ! test -z "$has_band" && [ $has_band -eq 1 ]; then
102102
fi
103103
#echo $has_hs
104104
if ! test -z "$has_hs" && [ $has_hs -eq 1 ]; then
105-
total_h=`sum_file OUT.autotest/data-H`
105+
total_h=`sum_file OUT.autotest/data-0-H`
106106
echo "totalHmatrix $total_h" >>$1
107-
total_s=`sum_file OUT.autotest/data-S`
107+
total_s=`sum_file OUT.autotest/data-0-S`
108108
echo "totalSmatrix $total_s" >>$1
109109
fi
110110

0 commit comments

Comments
 (0)