@@ -73,8 +73,7 @@ void Exx_Opt_Orb::generate_matrix(
7373 if (judge_orbs_empty (lcaos)) { return {}; }
7474 Matrix_Orbs22 m_lcaoslcaos_lcaoslcaos;
7575 ORB_gaunt_table MGT ;
76- int Lmax;
77- m_lcaoslcaos_lcaoslcaos.init ( 1 , ucell,orb, info.kmesh_times , orb.get_Rmax (), Lmax );
76+ const int Lmax = m_lcaoslcaos_lcaoslcaos.init ( 1 , ucell,orb, info.kmesh_times , orb.get_Rmax () );
7877 MGT .init_Gaunt_CH (Lmax);
7978 MGT .init_Gaunt (Lmax);
8079 m_lcaoslcaos_lcaoslcaos.init_radial ( lcaos, lcaos, lcaos, lcaos, MGT );
@@ -93,8 +92,7 @@ void Exx_Opt_Orb::generate_matrix(
9392 if (judge_orbs_empty (jle)) { return {}; }
9493 Matrix_Orbs21 m_jyslcaos_lcaos;
9594 ORB_gaunt_table MGT ;
96- int Lmax;
97- m_jyslcaos_lcaos.init ( 1 , ucell , orb, info.kmesh_times , orb.get_Rmax (), Lmax );
95+ const int Lmax = m_jyslcaos_lcaos.init ( 1 , ucell , orb, info.kmesh_times , orb.get_Rmax () );
9896 MGT .init_Gaunt_CH (Lmax);
9997 MGT .init_Gaunt (Lmax);
10098 m_jyslcaos_lcaos.init_radial ( jle, lcaos, lcaos, MGT );
@@ -112,8 +110,7 @@ void Exx_Opt_Orb::generate_matrix(
112110 if (judge_orbs_empty (jle)) { return {}; }
113111 Matrix_Orbs11 m_jys_jys;
114112 ORB_gaunt_table MGT ;
115- int Lmax;
116- m_jys_jys.init ( 2 ,ucell,orb, info.kmesh_times , orb.get_Rmax (), Lmax );
113+ const int Lmax = m_jys_jys.init ( 2 ,ucell,orb, info.kmesh_times , orb.get_Rmax () );
117114 MGT .init_Gaunt_CH (Lmax);
118115 MGT .init_Gaunt (Lmax);
119116 m_jys_jys.init_radial ( jle, jle, MGT );
@@ -131,8 +128,7 @@ void Exx_Opt_Orb::generate_matrix(
131128 if (judge_orbs_empty (abfs)) { return {}; }
132129 Matrix_Orbs11 m_abfs_abfs;
133130 ORB_gaunt_table MGT ;
134- int Lmax;
135- m_abfs_abfs.init ( 2 , ucell, orb, info.kmesh_times , orb.get_Rmax (), Lmax );
131+ const int Lmax = m_abfs_abfs.init ( 2 , ucell, orb, info.kmesh_times , orb.get_Rmax () );
136132 MGT .init_Gaunt_CH (Lmax);
137133 MGT .init_Gaunt (Lmax);
138134 m_abfs_abfs.init_radial ( abfs, abfs, MGT );
@@ -151,8 +147,7 @@ void Exx_Opt_Orb::generate_matrix(
151147 if (judge_orbs_empty (abfs)) { return {}; }
152148 Matrix_Orbs21 m_abfslcaos_lcaos;
153149 ORB_gaunt_table MGT ;
154- int Lmax;
155- m_abfslcaos_lcaos.init ( 1 , ucell , orb, info.kmesh_times , orb.get_Rmax (), Lmax );
150+ const int Lmax = m_abfslcaos_lcaos.init ( 1 , ucell , orb, info.kmesh_times , orb.get_Rmax () );
156151 MGT .init_Gaunt_CH (Lmax);
157152 MGT .init_Gaunt (Lmax);
158153 m_abfslcaos_lcaos.init_radial ( abfs, lcaos, lcaos, MGT );
@@ -171,8 +166,7 @@ void Exx_Opt_Orb::generate_matrix(
171166 if (judge_orbs_empty (abfs)) { return {}; }
172167 Matrix_Orbs11 m_jys_abfs;
173168 ORB_gaunt_table MGT ;
174- int Lmax;
175- m_jys_abfs.init ( 2 , ucell,orb, info.kmesh_times , orb.get_Rmax (), Lmax );
169+ const int Lmax = m_jys_abfs.init ( 2 , ucell,orb, info.kmesh_times , orb.get_Rmax () );
176170 MGT .init_Gaunt_CH (Lmax);
177171 MGT .init_Gaunt (Lmax);
178172 m_jys_abfs.init_radial ( jle, abfs, MGT );
0 commit comments