Skip to content

Commit e168715

Browse files
committed
modify the condition
1 parent 2f3540b commit e168715

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/module_cell/test/unitcell_test.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,9 @@ TEST_F(UcellTest, CheckTauTrue)
776776
ucell = utp.SetUcellInfo();
777777
GlobalV::ofs_warning.open("checktau_warning");
778778
int atom=0;
779+
//cause the ucell->lat0 is 0.5,if the type of the check_tau has
780+
//an int type,it will set to zero,and it will not pass the unittest
781+
ucell->lat0=0.5;
779782
ucell->nat=3;
780783
for (int it=0;it<ucell->ntype;it++)
781784
{
@@ -785,7 +788,6 @@ TEST_F(UcellTest, CheckTauTrue)
785788
for (int i=0;i<3;i++)
786789
{
787790
ucell->atoms[it].tau[ia][i]=((atom+i)/(ucell->nat*3.0));
788-
std::cout<<"the tau is "<<ucell->atoms[it].tau[ia][i];
789791
}
790792
atom+=3;
791793
}

0 commit comments

Comments
 (0)