Changeset f91abc for pcp


Ignore:
Timestamp:
Apr 22, 2008, 11:44:28 AM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
519b83
Parents:
1d77026
Message:

CalculatePerturbationOperator_RxP(): arrays for N, NUp and Wcentre transformed to pointers referring to orginal values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pcp/src/perturbed.c

    r1d77026 rf91abc  
    12061206  fftw_complex *PsiC = Dens0->DensityCArray[ActualPsiDensity];
    12071207  fftw_real *PsiCR = (fftw_real *) PsiC;
    1208   double x[NDIM], X[NDIM], fac[NDIM], Wcentre[NDIM];
     1208  double x[NDIM], X[NDIM], fac[NDIM], *Wcentre;
    12091209  int n[NDIM], n0, g, Index, iS, i0; //pos,
    1210   int N[NDIM], NUp[NDIM];
     1210  const int *N, *NUp;
    12111211  const int N0 = LevS->Plan0.plan->local_nx;
    1212   N[0] = LevS->Plan0.plan->N[0];
    1213   N[1] = LevS->Plan0.plan->N[1];
    1214   N[2] = LevS->Plan0.plan->N[2];
    1215   NUp[0] = LevS->NUp[0];
    1216   NUp[1] = LevS->NUp[1];
    1217   NUp[2] = LevS->NUp[2];
    1218   Wcentre[0] = Lat->Psi.AddData[phi0nr].WannierCentre[0];
    1219   Wcentre[1] = Lat->Psi.AddData[phi0nr].WannierCentre[1];
    1220   Wcentre[2] = Lat->Psi.AddData[phi0nr].WannierCentre[2];
     1212  N = LevS->Plan0.plan->N;
     1213  NUp = LevS->NUp;
     1214  Wcentre = Lat->Psi.AddData[phi0nr].WannierCentre;
    12211215  // init pointers and values
    12221216  const int myPE = P->Par.me_comm_ST_Psi;
Note: See TracChangeset for help on using the changeset viewer.