Skip to content

Commit 9917ded

Browse files
committed
fix the example 20_NO_KP_OHS_S4
1 parent c416bf4 commit 9917ded

File tree

6 files changed

+8
-9
lines changed

6 files changed

+8
-9
lines changed

source/module_io/cal_r_overlap_R.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ void cal_r_overlap_R::out_rR(const UnitCell& ucell, const Grid_Driver& gd, const
459459
ssr << PARAM.globalv.global_out_dir << "data-rR-sparse.csr";
460460
}
461461

462-
if (binary)
462+
if (binary) // .dat
463463
{
464464
ofs_tem1.close();
465465
int nlocal = PARAM.globalv.nlocal;
@@ -480,7 +480,7 @@ void cal_r_overlap_R::out_rR(const UnitCell& ucell, const Grid_Driver& gd, const
480480
ifs_tem1.close();
481481
out_r.close();
482482
}
483-
else
483+
else // .txt
484484
{
485485
ofs_tem1.close();
486486
if (PARAM.inp.calculation == "md" && PARAM.inp.out_app_flag && step)
@@ -676,13 +676,13 @@ void cal_r_overlap_R::out_rR_other(const UnitCell& ucell, const int& istep, cons
676676

677677
Parallel_Reduce::reduce_all(rR_nonzero_num, 3);
678678

679-
if (binary)
679+
if (binary) // .dat
680680
{
681681
out_r.write(reinterpret_cast<char*>(&dRx), sizeof(int));
682682
out_r.write(reinterpret_cast<char*>(&dRy), sizeof(int));
683683
out_r.write(reinterpret_cast<char*>(&dRz), sizeof(int));
684684
}
685-
else
685+
else // .txt
686686
{
687687
out_r << dRx << " " << dRy << " " << dRz << std::endl;
688688
}

tests/03_NAO_multik/20_NO_KP_OHS_S4/INPUT

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ mixing_type plain
2525
mixing_beta 0.7
2626
mixing_gg0 0.0
2727

28-
out_mat_hs 1 10
2928
out_mat_hs2 1
3029
out_mat_r 1
31-
out_ndigits 5
30+
out_ndigits 5

tests/integrate/tools/catch_properties.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,9 @@ fi
333333
#-----------------------------------
334334
#echo $has_hs2
335335
if ! test -z "$has_hs2" && [ $has_hs2 == 1 ]; then
336-
#python3 $COMPARE_SCRIPT data-HR-sparse_SPIN0.csr.ref OUT.autotest/data-HR-sparse_SPIN0.csr 8
336+
#python3 $COMPARE_SCRIPT hrs1_nao.csr.ref OUT.autotest/hrs1_nao.csr 8
337337
#echo "CompareHR_pass $?" >>$1
338-
python3 $COMPARE_SCRIPT data-SR-sparse_SPIN0.csr.ref OUT.autotest/data-SR-sparse_SPIN0.csr 8
338+
python3 $COMPARE_SCRIPT srs1_nao.csr.ref OUT.autotest/srs1_nao.csr 8
339339
echo "CompareSR_pass $?" >>$1
340340
fi
341341

@@ -353,7 +353,7 @@ fi
353353
#-----------------------------------
354354
#echo $has_mat_t
355355
if ! test -z "$has_mat_t" && [ $has_mat_t == 1 ]; then
356-
python3 $COMPARE_SCRIPT data-TR-sparse_SPIN0.csr.ref OUT.autotest/data-TR-sparse_SPIN0.csr 8
356+
python3 $COMPARE_SCRIPT trs1_nao.csr.ref OUT.autotest/trs1_nao.csr 8
357357
echo "ComparerTR_pass $?" >>$1
358358
fi
359359

0 commit comments

Comments
 (0)