@@ -1323,7 +1323,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsS1)
13231323 // mandatory preliminaries
13241324 delete[] ucell->magnet .start_magnetization ;
13251325 ucell->magnet .start_magnetization = new double [ucell->ntype ];
1326- ucell-> read_atom_positions (ifa, ofs_running, ofs_warning);
1326+ unitcell:: read_atom_positions (*ucell, ifa, ofs_running, ofs_warning);
13271327 ofs_running.close ();
13281328 ofs_warning.close ();
13291329 ifa.close ();
@@ -1355,7 +1355,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsS2)
13551355 // mandatory preliminaries
13561356 delete[] ucell->magnet .start_magnetization ;
13571357 ucell->magnet .start_magnetization = new double [ucell->ntype ];
1358- ucell-> read_atom_positions (ifa, ofs_running, ofs_warning);
1358+ unitcell:: read_atom_positions (*ucell, ifa, ofs_running, ofs_warning);
13591359 ofs_running.close ();
13601360 ofs_warning.close ();
13611361 ifa.close ();
@@ -1388,7 +1388,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsS4Noncolin)
13881388 // mandatory preliminaries
13891389 delete[] ucell->magnet .start_magnetization ;
13901390 ucell->magnet .start_magnetization = new double [ucell->ntype ];
1391- ucell-> read_atom_positions (ifa, ofs_running, ofs_warning);
1391+ unitcell:: read_atom_positions (*ucell, ifa, ofs_running, ofs_warning);
13921392 ofs_running.close ();
13931393 ofs_warning.close ();
13941394 ifa.close ();
@@ -1421,7 +1421,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsS4Colin)
14211421 // mandatory preliminaries
14221422 delete[] ucell->magnet .start_magnetization ;
14231423 ucell->magnet .start_magnetization = new double [ucell->ntype ];
1424- ucell-> read_atom_positions (ifa, ofs_running, ofs_warning);
1424+ unitcell:: read_atom_positions (*ucell, ifa, ofs_running, ofs_warning);
14251425 ofs_running.close ();
14261426 ofs_warning.close ();
14271427 ifa.close ();
@@ -1453,7 +1453,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsC)
14531453 // mandatory preliminaries
14541454 delete[] ucell->magnet .start_magnetization ;
14551455 ucell->magnet .start_magnetization = new double [ucell->ntype ];
1456- ucell-> read_atom_positions (ifa, ofs_running, ofs_warning);
1456+ unitcell:: read_atom_positions (*ucell, ifa, ofs_running, ofs_warning);
14571457 ofs_running.close ();
14581458 ofs_warning.close ();
14591459 ifa.close ();
@@ -1485,7 +1485,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsCA)
14851485 // mandatory preliminaries
14861486 delete[] ucell->magnet .start_magnetization ;
14871487 ucell->magnet .start_magnetization = new double [ucell->ntype ];
1488- ucell-> read_atom_positions (ifa, ofs_running, ofs_warning);
1488+ unitcell:: read_atom_positions (*ucell, ifa, ofs_running, ofs_warning);
14891489 ofs_running.close ();
14901490 ofs_warning.close ();
14911491 ifa.close ();
@@ -1517,7 +1517,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsCACXY)
15171517 // mandatory preliminaries
15181518 delete[] ucell->magnet .start_magnetization ;
15191519 ucell->magnet .start_magnetization = new double [ucell->ntype ];
1520- ucell-> read_atom_positions (ifa, ofs_running, ofs_warning);
1520+ unitcell:: read_atom_positions (*ucell, ifa, ofs_running, ofs_warning);
15211521 ofs_running.close ();
15221522 ofs_warning.close ();
15231523 ifa.close ();
@@ -1549,7 +1549,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsCACXZ)
15491549 // mandatory preliminaries
15501550 delete[] ucell->magnet .start_magnetization ;
15511551 ucell->magnet .start_magnetization = new double [ucell->ntype ];
1552- ucell-> read_atom_positions (ifa, ofs_running, ofs_warning);
1552+ unitcell:: read_atom_positions (*ucell, ifa, ofs_running, ofs_warning);
15531553 ofs_running.close ();
15541554 ofs_warning.close ();
15551555 ifa.close ();
@@ -1581,7 +1581,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsCACYZ)
15811581 // mandatory preliminaries
15821582 delete[] ucell->magnet .start_magnetization ;
15831583 ucell->magnet .start_magnetization = new double [ucell->ntype ];
1584- ucell-> read_atom_positions (ifa, ofs_running, ofs_warning);
1584+ unitcell:: read_atom_positions (*ucell, ifa, ofs_running, ofs_warning);
15851585 ofs_running.close ();
15861586 ofs_warning.close ();
15871587 ifa.close ();
@@ -1613,7 +1613,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsCACXYZ)
16131613 // mandatory preliminaries
16141614 delete[] ucell->magnet .start_magnetization ;
16151615 ucell->magnet .start_magnetization = new double [ucell->ntype ];
1616- ucell-> read_atom_positions (ifa, ofs_running, ofs_warning);
1616+ unitcell:: read_atom_positions (*ucell, ifa, ofs_running, ofs_warning);
16171617 ofs_running.close ();
16181618 ofs_warning.close ();
16191619 ifa.close ();
@@ -1646,7 +1646,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsCAU)
16461646 // mandatory preliminaries
16471647 delete[] ucell->magnet .start_magnetization ;
16481648 ucell->magnet .start_magnetization = new double [ucell->ntype ];
1649- ucell-> read_atom_positions (ifa, ofs_running, ofs_warning);
1649+ unitcell:: read_atom_positions (*ucell, ifa, ofs_running, ofs_warning);
16501650 ofs_running.close ();
16511651 ofs_warning.close ();
16521652 ifa.close ();
@@ -1678,7 +1678,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsAutosetMag)
16781678 // mandatory preliminaries
16791679 delete[] ucell->magnet .start_magnetization ;
16801680 ucell->magnet .start_magnetization = new double [ucell->ntype ];
1681- ucell-> read_atom_positions (ifa, ofs_running, ofs_warning);
1681+ unitcell:: read_atom_positions (*ucell, ifa, ofs_running, ofs_warning);
16821682 for (int it = 0 ; it < ucell->ntype ; it++)
16831683 {
16841684 for (int ia = 0 ; ia < ucell->atoms [it].na ; ia++)
@@ -1691,7 +1691,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsAutosetMag)
16911691 PARAM.input .nspin = 4 ;
16921692 delete[] ucell->magnet .start_magnetization ;
16931693 ucell->magnet .start_magnetization = new double [ucell->ntype ];
1694- ucell-> read_atom_positions (ifa, ofs_running, ofs_warning);
1694+ unitcell:: read_atom_positions (*ucell, ifa, ofs_running, ofs_warning);
16951695 for (int it = 0 ; it < ucell->ntype ; it++)
16961696 {
16971697 for (int ia = 0 ; ia < ucell->atoms [it].na ; ia++)
@@ -1732,7 +1732,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsWarning1)
17321732 // mandatory preliminaries
17331733 delete[] ucell->magnet .start_magnetization ;
17341734 ucell->magnet .start_magnetization = new double [ucell->ntype ];
1735- EXPECT_NO_THROW (ucell-> read_atom_positions (ifa, ofs_running, ofs_warning));
1735+ EXPECT_NO_THROW (unitcell:: read_atom_positions (*ucell, ifa, ofs_running, ofs_warning));
17361736 ofs_running.close ();
17371737 ofs_warning.close ();
17381738 ifa.close ();
@@ -1776,7 +1776,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsWarning2)
17761776 // mandatory preliminaries
17771777 delete[] ucell->magnet .start_magnetization ;
17781778 ucell->magnet .start_magnetization = new double [ucell->ntype ];
1779- EXPECT_NO_THROW (ucell-> read_atom_positions (ifa, ofs_running, ofs_warning));
1779+ EXPECT_NO_THROW (unitcell:: read_atom_positions (*ucell, ifa, ofs_running, ofs_warning));
17801780 ofs_running.close ();
17811781 ofs_warning.close ();
17821782 ifa.close ();
@@ -1813,7 +1813,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsWarning3)
18131813 // mandatory preliminaries
18141814 delete[] ucell->magnet .start_magnetization ;
18151815 ucell->magnet .start_magnetization = new double [ucell->ntype ];
1816- EXPECT_NO_THROW (ucell-> read_atom_positions (ifa, ofs_running, GlobalV::ofs_warning));
1816+ EXPECT_NO_THROW (unitcell:: read_atom_positions (*ucell, ifa, ofs_running, GlobalV::ofs_warning));
18171817 ofs_running.close ();
18181818 GlobalV::ofs_warning.close ();
18191819 ifa.close ();
@@ -1852,7 +1852,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsWarning4)
18521852 delete[] ucell->magnet .start_magnetization ;
18531853 ucell->magnet .start_magnetization = new double [ucell->ntype ];
18541854 testing::internal::CaptureStdout ();
1855- EXPECT_EXIT (ucell-> read_atom_positions (ifa, ofs_running, ofs_warning), ::testing::ExitedWithCode (1 ), " " );
1855+ EXPECT_EXIT (unitcell:: read_atom_positions (*ucell, ifa, ofs_running, ofs_warning), ::testing::ExitedWithCode (1 ), " " );
18561856 output = testing::internal::GetCapturedStdout ();
18571857 EXPECT_THAT (output, testing::HasSubstr (" read_atom_positions, mismatch in atom number for atom type: Mg" ));
18581858 ofs_running.close ();
@@ -1886,7 +1886,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsWarning5)
18861886 // mandatory preliminaries
18871887 delete[] ucell->magnet .start_magnetization ;
18881888 ucell->magnet .start_magnetization = new double [ucell->ntype ];
1889- EXPECT_NO_THROW (ucell-> read_atom_positions (ifa, ofs_running, GlobalV::ofs_warning));
1889+ EXPECT_NO_THROW (unitcell:: read_atom_positions (*ucell, ifa, ofs_running, GlobalV::ofs_warning));
18901890 ofs_running.close ();
18911891 GlobalV::ofs_warning.close ();
18921892 ifa.close ();
0 commit comments