@@ -1271,7 +1271,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsS1)
12711271 unitcell::read_atom_positions (*ucell, ifa, ofs_running, ofs_warning, nspin,
12721272 basis_type, orbital_dir, init_wfc,
12731273 onsite_radius, fixed_atoms, noncolin,
1274- calculation, esolver_type);
1274+ calculation, esolver_type, 0 );
12751275 ofs_running.close ();
12761276 ofs_warning.close ();
12771277 ifa.close ();
@@ -1312,7 +1312,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsS2)
13121312 unitcell::read_atom_positions (*ucell, ifa, ofs_running, ofs_warning, nspin,
13131313 basis_type, orbital_dir, init_wfc,
13141314 onsite_radius, fixed_atoms, noncolin,
1315- calculation, esolver_type);
1315+ calculation, esolver_type, 0 );
13161316 ofs_running.close ();
13171317 ofs_warning.close ();
13181318 ifa.close ();
@@ -1353,7 +1353,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsS4Noncolin)
13531353 unitcell::read_atom_positions (*ucell, ifa, ofs_running, ofs_warning, nspin,
13541354 basis_type, orbital_dir, init_wfc,
13551355 onsite_radius, fixed_atoms, noncolin,
1356- calculation, esolver_type);
1356+ calculation, esolver_type, 0 );
13571357 ofs_running.close ();
13581358 ofs_warning.close ();
13591359 ifa.close ();
@@ -1394,7 +1394,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsS4Colin)
13941394 unitcell::read_atom_positions (*ucell, ifa, ofs_running, ofs_warning, nspin,
13951395 basis_type, orbital_dir, init_wfc,
13961396 onsite_radius, fixed_atoms, noncolin,
1397- calculation, esolver_type);
1397+ calculation, esolver_type, 0 );
13981398 ofs_running.close ();
13991399 ofs_warning.close ();
14001400 ifa.close ();
@@ -1435,7 +1435,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsC)
14351435 unitcell::read_atom_positions (*ucell, ifa, ofs_running, ofs_warning, nspin,
14361436 basis_type, orbital_dir, init_wfc,
14371437 onsite_radius, fixed_atoms, noncolin,
1438- calculation, esolver_type);
1438+ calculation, esolver_type, 0 );
14391439 ofs_running.close ();
14401440 ofs_warning.close ();
14411441 ifa.close ();
@@ -1476,7 +1476,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsCA)
14761476 unitcell::read_atom_positions (*ucell, ifa, ofs_running, ofs_warning, nspin,
14771477 basis_type, orbital_dir, init_wfc,
14781478 onsite_radius, fixed_atoms, noncolin,
1479- calculation, esolver_type);
1479+ calculation, esolver_type, 0 );
14801480 ofs_running.close ();
14811481 ofs_warning.close ();
14821482 ifa.close ();
@@ -1517,7 +1517,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsCACXY)
15171517 unitcell::read_atom_positions (*ucell, ifa, ofs_running, ofs_warning, nspin,
15181518 basis_type, orbital_dir, init_wfc,
15191519 onsite_radius, fixed_atoms, noncolin,
1520- calculation, esolver_type);
1520+ calculation, esolver_type, 0 );
15211521 ofs_running.close ();
15221522 ofs_warning.close ();
15231523 ifa.close ();
@@ -1558,7 +1558,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsCACXZ)
15581558 unitcell::read_atom_positions (*ucell, ifa, ofs_running, ofs_warning, nspin,
15591559 basis_type, orbital_dir, init_wfc,
15601560 onsite_radius, fixed_atoms, noncolin,
1561- calculation, esolver_type);
1561+ calculation, esolver_type, 0 );
15621562 ofs_running.close ();
15631563 ofs_warning.close ();
15641564 ifa.close ();
@@ -1599,7 +1599,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsCACYZ)
15991599 unitcell::read_atom_positions (*ucell, ifa, ofs_running, ofs_warning, nspin,
16001600 basis_type, orbital_dir, init_wfc,
16011601 onsite_radius, fixed_atoms, noncolin,
1602- calculation, esolver_type);
1602+ calculation, esolver_type, 0 );
16031603 ofs_running.close ();
16041604 ofs_warning.close ();
16051605 ifa.close ();
@@ -1640,7 +1640,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsCACXYZ)
16401640 unitcell::read_atom_positions (*ucell, ifa, ofs_running, ofs_warning, nspin,
16411641 basis_type, orbital_dir, init_wfc,
16421642 onsite_radius, fixed_atoms, noncolin,
1643- calculation, esolver_type);
1643+ calculation, esolver_type, 0 );
16441644 ofs_running.close ();
16451645 ofs_warning.close ();
16461646 ifa.close ();
@@ -1681,7 +1681,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsCAU)
16811681 unitcell::read_atom_positions (*ucell, ifa, ofs_running, ofs_warning, nspin,
16821682 basis_type, orbital_dir, init_wfc,
16831683 onsite_radius, fixed_atoms, noncolin,
1684- calculation, esolver_type);
1684+ calculation, esolver_type, 0 );
16851685 ofs_running.close ();
16861686 ofs_warning.close ();
16871687 ifa.close ();
@@ -1722,7 +1722,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsAutosetMag)
17221722 unitcell::read_atom_positions (*ucell, ifa, ofs_running, ofs_warning, nspin,
17231723 basis_type, orbital_dir, init_wfc,
17241724 onsite_radius, fixed_atoms, noncolin,
1725- calculation, esolver_type);
1725+ calculation, esolver_type, 0 );
17261726 for (int it = 0 ; it < ucell->ntype ; it++)
17271727 {
17281728 for (int ia = 0 ; ia < ucell->atoms [it].na ; ia++)
@@ -1736,7 +1736,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsAutosetMag)
17361736 unitcell::read_atom_positions (*ucell, ifa, ofs_running, ofs_warning, nspin,
17371737 basis_type, orbital_dir, init_wfc,
17381738 onsite_radius, fixed_atoms, noncolin,
1739- calculation, esolver_type);
1739+ calculation, esolver_type, 0 );
17401740 for (int it = 0 ; it < ucell->ntype ; it++)
17411741 {
17421742 for (int ia = 0 ; ia < ucell->atoms [it].na ; ia++)
@@ -1787,7 +1787,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsWarning1)
17871787 EXPECT_NO_THROW (unitcell::read_atom_positions (*ucell, ifa, ofs_running, ofs_warning, nspin,
17881788 basis_type, orbital_dir, init_wfc,
17891789 onsite_radius, fixed_atoms, noncolin,
1790- calculation, esolver_type));
1790+ calculation, esolver_type, 0 ));
17911791 ofs_running.close ();
17921792 ofs_warning.close ();
17931793 ifa.close ();
@@ -1841,7 +1841,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsWarning2)
18411841 EXPECT_NO_THROW (unitcell::read_atom_positions (*ucell, ifa, ofs_running, ofs_warning, nspin,
18421842 basis_type, orbital_dir, init_wfc,
18431843 onsite_radius, fixed_atoms, noncolin,
1844- calculation, esolver_type));
1844+ calculation, esolver_type, 0 ));
18451845 ofs_running.close ();
18461846 ofs_warning.close ();
18471847 ifa.close ();
@@ -1888,7 +1888,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsWarning3)
18881888 EXPECT_NO_THROW (unitcell::read_atom_positions (*ucell, ifa, ofs_running, GlobalV::ofs_warning, nspin,
18891889 basis_type, orbital_dir, init_wfc,
18901890 onsite_radius, fixed_atoms, noncolin,
1891- calculation, esolver_type));
1891+ calculation, esolver_type, 0 ));
18921892 ofs_running.close ();
18931893 GlobalV::ofs_warning.close ();
18941894 ifa.close ();
@@ -1937,7 +1937,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsWarning4)
19371937 EXPECT_EXIT (unitcell::read_atom_positions (*ucell, ifa, ofs_running, ofs_warning, nspin,
19381938 basis_type, orbital_dir, init_wfc,
19391939 onsite_radius, fixed_atoms, noncolin,
1940- calculation, esolver_type), ::testing::ExitedWithCode (1 ), " " );
1940+ calculation, esolver_type, 0 ), ::testing::ExitedWithCode (1 ), " " );
19411941 output = testing::internal::GetCapturedStdout ();
19421942 EXPECT_THAT (output, testing::HasSubstr (" read_atom_positions, mismatch in atom number for atom type: Mg" ));
19431943 ofs_running.close ();
@@ -1979,7 +1979,7 @@ TEST_F(UcellTestReadStru, ReadAtomPositionsWarning5)
19791979 EXPECT_NO_THROW (unitcell::read_atom_positions (*ucell, ifa, ofs_running, GlobalV::ofs_warning, nspin,
19801980 basis_type, orbital_dir, init_wfc,
19811981 onsite_radius, fixed_atoms, noncolin,
1982- calculation, esolver_type));
1982+ calculation, esolver_type, 0 ));
19831983 ofs_running.close ();
19841984 GlobalV::ofs_warning.close ();
19851985 ifa.close ();
0 commit comments