Changeset 986488


Ignore:
Timestamp:
Apr 22, 2008, 12:14:29 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
acd467
Parents:
b924cd
Message:

CalculateChemicalShieldingByReciprocalCurrentDensity(): Lev0->Ecut/4. is the correct cut off per level not LevelSizes*LevelSizes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pcp/src/perturbed.c

    rb924cd r986488  
    30623062  //const double FFTfactor = 1.;///Lev0->MaxN;
    30633063  double eta, delta_sigma, S, A, iso;
    3064   FILE *SigmaFile;
    3065   char suffixsigma[255];
    30663064  int cross_lookup[4]; // cross lookup table
    30673065  const double factorDC = R->FactorDensityC;
    30683066  gsl_matrix_complex *H = gsl_matrix_complex_calloc(NDIM,NDIM);
     3067  FILE *SigmaFile;
     3068  char suffixsigma[255];
    30693069 
    30703070  time_t seconds; 
     
    31603160    OpenFile(P, &SigmaFile, suffixsigma, "a", P->Call.out[ReadOut]);
    31613161    fprintf(SigmaFile,"# chemical shielding tensor sigma_rezi[01,02,03,10,11,12,20,21,22], seed %i, config %s, run on %s", R->Seed, P->Files.default_path, ctime(&seconds));
    3162     fprintf(SigmaFile,"%lg\t", P->Lat.ECut/(Lat->LevelSizes[0]*Lat->LevelSizes[0]));
     3162    fprintf(SigmaFile,"%lg\t", Lev0->ECut/4.);
    31633163    for (in=0;in<NDIM;in++)
    31643164      for (dex=0;dex<NDIM;dex++)
     
    31863186        OpenFile(P, &SigmaFile, suffixsigma, "a", P->Call.out[ReadOut]);
    31873187        fprintf(SigmaFile,"# chemical shielding tensor sigma_rezi[01,02,03,10,11,12,20,21,22], seed %i, config %s, run on %s", R->Seed, P->Files.default_path, ctime(&seconds));
    3188         fprintf(SigmaFile,"%lg\t", P->Lat.ECut/(Lat->LevelSizes[0]*Lat->LevelSizes[0]));
     3188        fprintf(SigmaFile,"%lg\t", Lev0->ECut/4.);  // ECut is in Rydberg
    31893189        for (in=0;in<NDIM;in++)
    31903190          for (dex=0;dex<NDIM;dex++)
Note: See TracChangeset for help on using the changeset viewer.