Skip to content

Commit 183c50a

Browse files
author
wenfei-li
committed
replace globalc::pw.bxyz by globalc::bigpw->bxyz
1 parent 218315a commit 183c50a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/module_gint/gint_tools.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace Gint_Tools
3939
const int jby,
4040
const int kbz)
4141
{
42-
int *vindex = new int[GlobalC::pw.bxyz*sizeof(int)];
42+
int *vindex = new int[GlobalC::bigpw->bxyz*sizeof(int)];
4343
int bindex=0;
4444
// z is the fastest,
4545
// ipart can be obtained by using a previously stored array
@@ -71,8 +71,8 @@ namespace Gint_Tools
7171
{
7272
// set the index for obtaining local potentials
7373
int* vindex = Gint_Tools::get_vindex(ncyz, ibx, jby, kbz);
74-
double *vldr3 = new double[GlobalC::pw.bxyz*sizeof(double)];
75-
for(int ib=0; ib<GlobalC::pw.bxyz; ib++)
74+
double *vldr3 = new double[GlobalC::bigpw->bxyz*sizeof(double)];
75+
for(int ib=0; ib<GlobalC::bigpw->bxyz; ib++)
7676
{
7777
vldr3[ib]=vlocal[vindex[ib]] * dv;
7878
}
@@ -88,8 +88,8 @@ namespace Gint_Tools
8888
{
8989
// set the index for obtaining local potentials
9090
int* vindex = Gint_Tools::get_vindex(start_ind, ncyz);
91-
double *vldr3 = new double[GlobalC::pw.bxyz*sizeof(double)];
92-
for(int ib=0; ib<GlobalC::pw.bxyz; ib++)
91+
double *vldr3 = new double[GlobalC::bigpw->bxyz*sizeof(double)];
92+
for(int ib=0; ib<GlobalC::bigpw->bxyz; ib++)
9393
{
9494
vldr3[ib]=vlocal[vindex[ib]] * dv;
9595
}

0 commit comments

Comments
 (0)