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 2f3540b commit e168715Copy full SHA for e168715
source/module_cell/test/unitcell_test.cpp
@@ -776,6 +776,9 @@ TEST_F(UcellTest, CheckTauTrue)
776
ucell = utp.SetUcellInfo();
777
GlobalV::ofs_warning.open("checktau_warning");
778
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;
782
ucell->nat=3;
783
for (int it=0;it<ucell->ntype;it++)
784
{
@@ -785,7 +788,6 @@ TEST_F(UcellTest, CheckTauTrue)
785
788
for (int i=0;i<3;i++)
786
789
787
790
ucell->atoms[it].tau[ia][i]=((atom+i)/(ucell->nat*3.0));
- std::cout<<"the tau is "<<ucell->atoms[it].tau[ia][i];
791
}
792
atom+=3;
793
0 commit comments