33#include " exx_abfs-jle.h"
44
55void Exx_Opt_Orb::print_matrix (
6+ const UnitCell& ucell,
67 const K_Vectors &kv,
78 const std::string& file_name,
89 const std::vector<RI::Tensor<double >> &matrix_Q,
@@ -15,47 +16,47 @@ void Exx_Opt_Orb::print_matrix(
1516{
1617 auto print_header = [&]( std::ofstream &ofs )
1718 {
18- ofs << GlobalC:: ucell.lat0 << std::endl;
19+ ofs << ucell.lat0 << std::endl;
1920
20- ofs << GlobalC:: ucell.latvec .e11 << " " << GlobalC:: ucell.latvec .e12 << " " << GlobalC:: ucell.latvec .e13 << std::endl;
21- ofs << GlobalC:: ucell.latvec .e21 << " " << GlobalC:: ucell.latvec .e22 << " " << GlobalC:: ucell.latvec .e23 << std::endl;
22- ofs << GlobalC:: ucell.latvec .e31 << " " << GlobalC:: ucell.latvec .e32 << " " << GlobalC:: ucell.latvec .e33 << std::endl;
21+ ofs << ucell.latvec .e11 << " " << ucell.latvec .e12 << " " << ucell.latvec .e13 << std::endl;
22+ ofs << ucell.latvec .e21 << " " << ucell.latvec .e22 << " " << ucell.latvec .e23 << std::endl;
23+ ofs << ucell.latvec .e31 << " " << ucell.latvec .e32 << " " << ucell.latvec .e33 << std::endl;
2324
2425 if ( TA==TB )
2526 {
2627 ofs << 1 << " ntype" << std::endl;
27- ofs << GlobalC:: ucell.atoms [TA].label << " label" << std::endl;
28+ ofs << ucell.atoms [TA].label << " label" << std::endl;
2829 if ( IA==IB )
2930 {
3031 ofs << 1 << " na" << std::endl;
31- ofs << GlobalC:: ucell.atoms [TA].tau [IA].x << " "
32- << GlobalC:: ucell.atoms [TA].tau [IA].y << " "
33- << GlobalC:: ucell.atoms [TA].tau [IA].z << std::endl;
32+ ofs << ucell.atoms [TA].tau [IA].x << " "
33+ << ucell.atoms [TA].tau [IA].y << " "
34+ << ucell.atoms [TA].tau [IA].z << std::endl;
3435 }
3536 else
3637 {
3738 ofs << 2 << " na" << std::endl;
38- ofs << GlobalC:: ucell.atoms [TA].tau [IA].x << " "
39- << GlobalC:: ucell.atoms [TA].tau [IA].y << " "
40- << GlobalC:: ucell.atoms [TA].tau [IA].z << std::endl;
41- ofs << GlobalC:: ucell.atoms [TB].tau [IB].x << " "
42- << GlobalC:: ucell.atoms [TB].tau [IB].y << " "
43- << GlobalC:: ucell.atoms [TB].tau [IB].z << std::endl;
39+ ofs << ucell.atoms [TA].tau [IA].x << " "
40+ << ucell.atoms [TA].tau [IA].y << " "
41+ << ucell.atoms [TA].tau [IA].z << std::endl;
42+ ofs << ucell.atoms [TB].tau [IB].x << " "
43+ << ucell.atoms [TB].tau [IB].y << " "
44+ << ucell.atoms [TB].tau [IB].z << std::endl;
4445 }
4546 }
4647 else
4748 {
4849 ofs << 2 << " ntype" << std::endl;
49- ofs << GlobalC:: ucell.atoms [TA].label << " label" << std::endl;
50+ ofs << ucell.atoms [TA].label << " label" << std::endl;
5051 ofs << 1 << " na" << std::endl;
51- ofs << GlobalC:: ucell.atoms [TA].tau [IA].x << " "
52- << GlobalC:: ucell.atoms [TA].tau [IA].y << " "
53- << GlobalC:: ucell.atoms [TA].tau [IA].z << std::endl;
54- ofs << GlobalC:: ucell.atoms [TB].label << " label" << std::endl;
52+ ofs << ucell.atoms [TA].tau [IA].x << " "
53+ << ucell.atoms [TA].tau [IA].y << " "
54+ << ucell.atoms [TA].tau [IA].z << std::endl;
55+ ofs << ucell.atoms [TB].label << " label" << std::endl;
5556 ofs << 1 << " na" << std::endl;
56- ofs << GlobalC:: ucell.atoms [TB].tau [IB].x << " "
57- << GlobalC:: ucell.atoms [TB].tau [IB].y << " "
58- << GlobalC:: ucell.atoms [TB].tau [IB].z << std::endl;
57+ ofs << ucell.atoms [TB].tau [IB].x << " "
58+ << ucell.atoms [TB].tau [IB].y << " "
59+ << ucell.atoms [TB].tau [IB].z << std::endl;
5960 }
6061
6162 // ecutwfc_jlq determine the jlq corresponding to plane wave calculation.
0 commit comments