Skip to content

Commit 34ba409

Browse files
committed
change ucell in module_ri/matirx_orb22,matirx_orb11.cpp
1 parent ea19823 commit 34ba409

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

source/module_ri/Matrix_Orbs21.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,16 +182,16 @@ std::map<size_t, std::map<size_t, std::map<size_t, std::map<size_t, std::vector<
182182
for( const auto &co1 : center2_orb21_s )
183183
{
184184
const size_t TA = co1.first;
185-
for( size_t IA=0; IA!=GlobalC::ucell.atoms[TA].na; ++IA )
185+
for( size_t IA=0; IA!=ucell.atoms[TA].na; ++IA )
186186
{
187-
const ModuleBase::Vector3<double> &tauA( GlobalC::ucell.atoms[TA].tau[IA] );
187+
const ModuleBase::Vector3<double> &tauA( ucell.atoms[TA].tau[IA] );
188188

189189
for( const auto &co2 : co1.second )
190190
{
191191
const size_t TB = co2.first;
192-
for( size_t IB=0; IB!=GlobalC::ucell.atoms[TB].na; ++IB )
192+
for( size_t IB=0; IB!=ucell.atoms[TB].na; ++IB )
193193
{
194-
const ModuleBase::Vector3<double> &tauB( GlobalC::ucell.atoms[TB].tau[IB] );
194+
const ModuleBase::Vector3<double> &tauB( ucell.atoms[TB].tau[IB] );
195195

196196
const RI::Tensor<Tdata> &&m = cal_overlap_matrix<Tdata>( TA, TB, tauA, tauB, index_A1, index_A2, index_B, Matrix_Order::A2BA1 );
197197
matrixes[TA][IA][TB][IB].resize(2);

source/module_ri/Matrix_Orbs22.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -286,22 +286,22 @@ std::map < size_t, std::map<size_t, std::map<size_t, std::map<size_t, RI::Tensor
286286
for( const auto &co1 : center2_orb22_s )
287287
{
288288
const size_t TA = co1.first;
289-
for( size_t IA=0; IA!=GlobalC::ucell.atoms[TA].na; ++IA )
289+
for( size_t IA=0; IA!=ucell.atoms[TA].na; ++IA )
290290
{
291-
const ModuleBase::Vector3<double> &tauA( GlobalC::ucell.atoms[TA].tau[IA] );
291+
const ModuleBase::Vector3<double> &tauA( ucell.atoms[TA].tau[IA] );
292292

293293
for( const auto &co2 : co1.second )
294294
{
295295
const size_t TB = co2.first;
296-
for( size_t IB=0; IB!=GlobalC::ucell.atoms[TB].na; ++IB )
296+
for( size_t IB=0; IB!=ucell.atoms[TB].na; ++IB )
297297
{
298-
const ModuleBase::Vector3<double> &tauB( GlobalC::ucell.atoms[TB].tau[IB] );
298+
const ModuleBase::Vector3<double> &tauB( ucell.atoms[TB].tau[IB] );
299299

300300
matrixes[TA][IA][TB][IB] = cal_overlap_matrix<Tdata>(
301301
TA,
302302
TB,
303-
GlobalC::ucell.atoms[TA].tau[IA],
304-
GlobalC::ucell.atoms[TB].tau[IB],
303+
ucell.atoms[TA].tau[IA],
304+
ucell.atoms[TB].tau[IB],
305305
index_A1,
306306
index_A2,
307307
index_B1,

source/module_ri/module_exx_symmetry/symmetry_rotation.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,13 +321,13 @@ namespace ModuleSymmetry
321321
ofs << gmatc[isym].e21 << " " << gmatc[isym].e22 << " " << gmatc[isym].e23 << std::endl;
322322
ofs << gmatc[isym].e31 << " " << gmatc[isym].e32 << " " << gmatc[isym].e33 << std::endl;
323323
ofs << "gmatrix_direct=" << std::endl;
324-
ofs << GlobalC::ucell.symm.gmatrix[isym].e11 << " " << GlobalC::ucell.symm.gmatrix[isym].e12 << " " << GlobalC::ucell.symm.gmatrix[isym].e13 << std::endl;
325-
ofs << GlobalC::ucell.symm.gmatrix[isym].e21 << " " << GlobalC::ucell.symm.gmatrix[isym].e22 << " " << GlobalC::ucell.symm.gmatrix[isym].e23 << std::endl;
326-
ofs << GlobalC::ucell.symm.gmatrix[isym].e31 << " " << GlobalC::ucell.symm.gmatrix[isym].e32 << " " << GlobalC::ucell.symm.gmatrix[isym].e33 << std::endl;
324+
ofs << ucell.symm.gmatrix[isym].e11 << " " << ucell.symm.gmatrix[isym].e12 << " " << ucell.symm.gmatrix[isym].e13 << std::endl;
325+
ofs << ucell.symm.gmatrix[isym].e21 << " " << ucell.symm.gmatrix[isym].e22 << " " << ucell.symm.gmatrix[isym].e23 << std::endl;
326+
ofs << ucell.symm.gmatrix[isym].e31 << " " << ucell.symm.gmatrix[isym].e32 << " " << ucell.symm.gmatrix[isym].e33 << std::endl;
327327
ofs << "kgmatrix_direct=" << std::endl;
328-
ofs << GlobalC::ucell.symm.kgmatrix[isym].e11 << " " << GlobalC::ucell.symm.kgmatrix[isym].e12 << " " << GlobalC::ucell.symm.kgmatrix[isym].e13 << std::endl;
329-
ofs << GlobalC::ucell.symm.kgmatrix[isym].e21 << " " << GlobalC::ucell.symm.kgmatrix[isym].e22 << " " << GlobalC::ucell.symm.kgmatrix[isym].e23 << std::endl;
330-
ofs << GlobalC::ucell.symm.kgmatrix[isym].e31 << " " << GlobalC::ucell.symm.kgmatrix[isym].e32 << " " << GlobalC::ucell.symm.kgmatrix[isym].e33 << std::endl;
328+
ofs << ucell.symm.kgmatrix[isym].e11 << " " << ucell.symm.kgmatrix[isym].e12 << " " << ucell.symm.kgmatrix[isym].e13 << std::endl;
329+
ofs << ucell.symm.kgmatrix[isym].e21 << " " << ucell.symm.kgmatrix[isym].e22 << " " << ucell.symm.kgmatrix[isym].e23 << std::endl;
330+
ofs << ucell.symm.kgmatrix[isym].e31 << " " << ucell.symm.kgmatrix[isym].e32 << " " << ucell.symm.kgmatrix[isym].e33 << std::endl;
331331
ofs << "euler_angle/pi: " << euler_angles_test[isym].x / ModuleBase::PI << " "
332332
<< euler_angles_test[isym].y / ModuleBase::PI << " " << euler_angles_test[isym].z / ModuleBase::PI << std::endl;
333333
for (int l = 0;l <= lmax;++l)

0 commit comments

Comments
 (0)