Changeset 2f6ae6


Ignore:
Timestamp:
Apr 25, 2008, 10:31:15 AM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
941b66
Parents:
201832
Message:

CalculateChemicalShieldingByReciprocalCurrentDensity(): .sigma_all_PAS.csv is written with highest values for all ions (used for BOSSANOVA reconstruction)

The setup of the file is similar to pcp.forces.csv, hence joiner may be used in the same way.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pcp/src/perturbed.c

    r201832 r2f6ae6  
    32893289        fprintf(SigmaFile,"%lg\t%lg\t%lg\t%lg\t%lg\t\n", iso, delta_sigma, eta, S, A);
    32903290        fclose(SigmaFile);
     3291        sprintf(suffixsigma, ".sigma_all_PAS.csv");
     3292        if (Lev0->LevelNo == 0) {
     3293          if ((it == 0) && (ion == 0)) { // if we are the first ion
     3294            OpenFile(P, &SigmaFile, suffixsigma, "w", P->Call.out[ReadOut]);
     3295            fprintf(SigmaFile,"# chemical shielding tensor sigma[00,11,22] Principal Axis System, Ecut %lg, seed %i, config %s, run on %s", Lev0->ECut/4., R->Seed, P->Files.default_path, ctime(&seconds));
     3296            fprintf(SigmaFile,"# Element\tIonNr.\tSigma_XX\tSigma_YY\tSigma_ZZ\tShielding\tanisotropy\tasymmetry\tS\t\tA\n");
     3297          } else
     3298            OpenFile(P, &SigmaFile, suffixsigma, "a", P->Call.out[ReadOut]);
     3299          fprintf(SigmaFile,"%i\t%i\t", it, ion);  // ion type and ion number
     3300          for (i=0;i<NDIM;i++)
     3301            fprintf(SigmaFile,"%lg\t", gsl_vector_get(eval,i));
     3302          fprintf(SigmaFile,"%lg\t%lg\t%lg\t%lg\t%lg\t\n", iso, delta_sigma, eta, S, A);
     3303          fclose(SigmaFile);
     3304        }
    32913305      }
    32923306    }
Note: See TracChangeset for help on using the changeset viewer.