Skip to content

Commit f93413d

Browse files
committed
change ucell in bessel_basis_test.cpp
1 parent 20196d3 commit f93413d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source/module_io/test/bessel_basis_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,8 @@ TEST_F(TestBesselBasis, PolynomialInterpolationTest) {
514514
/*
515515
manipulate Bessel_Basis::init_Faln function
516516
because for(int it=0; it<ntype; it++)
517-
then for(int il=0; il<GlobalC::ucell.atoms[it].nwl+1; il++)
518-
and for(int in=0; in<GlobalC::ucell.atoms[it].l_nchi[il]; in++)
517+
then for(int il=0; il<ucell.atoms[it].nwl+1; il++)
518+
and for(int in=0; in<ucell.atoms[it].l_nchi[il]; in++)
519519
Parameter ntype is controlled by input, but
520520
Parameter nwl, l_nchi are controlled by GlobalC, and will determine exact dimension of Faln
521521
*/

source/module_io/write_wfc_r.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void write_psi_r_1(const UnitCell& ucell,
6767
wfc_imag[ir] = wfc_r[ir].imag();
6868
}
6969
}
70-
std::string file_name_base = outdir + "wfc_realspace_" +
70+
const std::string file_name_base = outdir + "wfc_realspace_" +
7171
ModuleBase::GlobalFunc::TO_STRING(ik_out) + "_" +
7272
ModuleBase::GlobalFunc::TO_STRING(ib);
7373
const std::string file_name = square ? file_name_base : file_name_base + "_imag";

0 commit comments

Comments
 (0)