Changeset 8ea7f8


Ignore:
Timestamp:
Apr 21, 2008, 2:19:23 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
02ba60
Parents:
3ff846
git-author:
Frederik Heber <heber@…> (04/18/08 13:38:10)
git-committer:
Frederik Heber <heber@…> (04/21/08 14:19:23)
Message:

UpdateToNewWaves(): No extra calcs for UnOccupied or DoPerturbation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified pcp/src/run.c

    r3ff846 r8ea7f8  
    470470  struct Psis *Psi = &Lat->Psi;
    471471  struct Energy *E = Lat->E;
    472   int i,type;
     472  int i;//,type;
    473473  R->OldActualLocalPsiNo = R->ActualLocalPsiNo = 0;
    474474  //if (isnan((double)R->LevS->LPsi->LocalPsi[R->OldActualLocalPsiNo][0].re)) { fprintf(stderr,"(%i) WARNING in UpdateGramSchActualPsiNo(): LPsi->LocalPsi[%i]_[%i] = NaN!\n", P->Par.me, R->OldActualLocalPsiNo, 0); Error(SomeError, "NaN-Fehler!"); }
     
    492492  CalculateEwald(P, 0);
    493493  EnergyAllReduce(P);
    494   if (R->DoUnOccupied) {
     494/*  if (R->DoUnOccupied) {
    495495          SetCurrentMinState(P,UnOccupied);
    496           InitPsiEnergyCalculation(P,UnOccupied); /* STANDARTLEVEL */
    497           CalculateGapEnergy(P); /* STANDARTLEVEL */   
     496          InitPsiEnergyCalculation(P,UnOccupied);
     497          CalculateGapEnergy(P);       
    498498          EnergyAllReduce(P);
    499499  }
     
    501501    for(type=Perturbed_P0;type <=Perturbed_RxP2;type++) {
    502502      SetCurrentMinState(P,type);
    503       InitPerturbedEnergyCalculation(P,1); /* STANDARTLEVEL */
     503      InitPerturbedEnergyCalculation(P,1);
    504504      EnergyAllReduce(P);
    505505    }
    506   SetCurrentMinState(P,Occupied);
     506  SetCurrentMinState(P,Occupied);*/
    507507  E->TotalEnergyOuter[0] = E->TotalEnergy[0];
    508508  EnergyOutput(P,0);
Note: See TracChangeset for help on using the changeset viewer.