Changeset e00f47
- Timestamp:
- Apr 21, 2008, 2:19:24 PM (17 years ago)
- Children:
- 961b75
- Parents:
- 64fa9e
- git-author:
- Frederik Heber <heber@…> (04/18/08 15:14:39)
- git-committer:
- Frederik Heber <heber@…> (04/21/08 14:19:24)
- Location:
- pcp/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified pcp/src/gramsch.c ¶
r64fa9e re00f47 168 168 * \return Squared norm of wave function 169 169 */ 170 staticdouble GramSchNormalize(const struct Problem *P, struct LatticeLevel *Lev, fftw_complex *LPsiDat, double PsiSP) {170 double GramSchNormalize(const struct Problem *P, struct LatticeLevel *Lev, fftw_complex *LPsiDat, double PsiSP) { 171 171 double LocalSP=0.0; 172 172 int i,s = 0; … … 182 182 MPI_Allreduce ( &LocalSP, &PsiSP, 1, MPI_DOUBLE, MPI_SUM, P->Par.comm_ST_Psi); 183 183 } 184 if ( PsiSP < MYEPSILON) fprintf(stderr,"GramSchNormalize: PsiSP = %lg\n",PsiSP);184 if ((PsiSP < MYEPSILON) && (P->Call.out[PsiOut])) fprintf(stderr,"GramSchNormalize: PsiSP = %lg\n",PsiSP); 185 185 PsiSP = sqrt(PsiSP); // take square root 186 186 for (i=0; i < Lev->MaxG; i++) { // and divide each coefficient by the norm -
TabularUnified pcp/src/gramsch.h ¶
r64fa9e re00f47 19 19 void FreeMPI_OnePsiElement(); 20 20 void FirstInitGramSchData(struct Problem *P, struct Psis *Psi); 21 void GramSch(struct Problem *P, struct LatticeLevel *Lev, struct Psis *Psi, enum PsiGramSchToDoType ToDo); 22 double GramSchNormalize(const struct Problem *P, struct LatticeLevel *Lev, fftw_complex *LPsiDat, double PsiSP); 21 23 double GramSchGetNorm2(const struct Problem *P, struct LatticeLevel *Lev, fftw_complex *LPsiDat); 22 void GramSch(struct Problem *P, struct LatticeLevel *Lev, struct Psis *Psi, enum PsiGramSchToDoType ToDo);23 24 void SetGramSchExtraPsi(const struct Problem *P, struct Psis *Psi, enum PsiGramSchStatusType PsiGramSchStatus); 24 25 void SetGramSchActualPsi(const struct Problem *P, struct Psis *Psi, enum PsiGramSchStatusType PsiGramSchStatus);
Note:
See TracChangeset
for help on using the changeset viewer.