Changeset f91abc
- Timestamp:
- Apr 22, 2008, 11:44:28 AM (17 years ago)
- Children:
- 519b83
- Parents:
- 1d77026
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pcp/src/perturbed.c
r1d77026 rf91abc 1206 1206 fftw_complex *PsiC = Dens0->DensityCArray[ActualPsiDensity]; 1207 1207 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; 1209 1209 int n[NDIM], n0, g, Index, iS, i0; //pos, 1210 int N[NDIM], NUp[NDIM];1210 const int *N, *NUp; 1211 1211 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; 1221 1215 // init pointers and values 1222 1216 const int myPE = P->Par.me_comm_ST_Psi;
Note:
See TracChangeset
for help on using the changeset viewer.