[a0bcf1] | 1 | #ifndef output_h
|
---|
| 2 | #define output_h
|
---|
| 3 |
|
---|
| 4 | /** \file output.h
|
---|
| 5 | * Header file for \ref output.c.
|
---|
| 6 | *
|
---|
| 7 | * Contains declarations of the functions implemented in \ref output.c.
|
---|
| 8 | *
|
---|
| 9 | Project: ParallelCarParrinello
|
---|
| 10 | Jan Hamaekers
|
---|
| 11 | 2000
|
---|
| 12 |
|
---|
| 13 | File: output.h
|
---|
| 14 | $Id: output.h,v 1.17.2.1 2007-04-21 12:55:50 foo Exp $
|
---|
| 15 | */
|
---|
| 16 |
|
---|
| 17 | static const char suffixdensdat[] = ".density.data"; //!< Suffix for density data file
|
---|
| 18 | static const char suffixdensdx[] = ".density.dx"; //!< Suffix for density OpenDx file
|
---|
| 19 | static const char suffixdensdoc[] = ".density.doc"; //!< Suffix for density doc file
|
---|
| 20 | static const char suffixdenspos[] = ".density.pos"; //!< Suffix for density position file
|
---|
| 21 | #if BIGENDIAN == 1
|
---|
| 22 | static const char msb[] = "msb"; //!< most significant byte first
|
---|
| 23 | #else
|
---|
| 24 | static const char msb[] = "lsb"; //!< least significant byte first
|
---|
| 25 | #endif
|
---|
| 26 |
|
---|
| 27 |
|
---|
| 28 | static const char suffixsrcpsidat[] = ".srcpsi.data"; //!< Suffix for Psi state data file
|
---|
| 29 | static const char suffixsrcpsidowndat[] = ".srcpsi.down.data"; //!< Suffix for Psi state SpinDown data file
|
---|
| 30 | static const char suffixsrcpsiupdat[] = ".srcpsi.up.data"; //!< Suffix for Psi state SpinUp data file
|
---|
| 31 | static const char suffixsrcpsidoc[] = ".srcpsi.doc"; //!< Suffix for Psi state doc file
|
---|
| 32 | static const char suffixsrcpsidowndoc[] = ".srcpsi.down.doc"; //!< Suffix for Psi state SpinDown doc file
|
---|
| 33 | static const char suffixsrcpsiupdoc[] = ".srcpsi.up.doc"; //!< Suffix for Psi state SpinUp doc file
|
---|
| 34 |
|
---|
| 35 | static const char suffixforcesall[] = ".forces.all"; //!< Suffix for "measured" total forces file
|
---|
| 36 | static const char suffixenergyall[] = ".energy.all"; //!< Suffix for "measured" total energy file
|
---|
| 37 | static const char suffixhamiltonianall[] = ".hamiltonian.csv"; //!< Suffix for explicit hamiltonian coefficients (in Kohn-Sham-base) file
|
---|
| 38 | static const char suffixminall[] = ".minimisation.csv"; //!< Suffix for minimisation file
|
---|
| 39 | static const char suffixspreadall[] = ".spread.csv"; //!< Suffix for explicit hamiltonian coefficients (in Kohn-Sham-base) file
|
---|
| 40 |
|
---|
| 41 | /* Konvention: Rueckgabe 0 einer Funktion, bedeutet keinen Fehler (entsprechend exitcode 0) */
|
---|
| 42 | /* Oeffnet Datei P->mainname+"..." mit what*/
|
---|
| 43 | int OpenFile(struct Problem *P, FILE** file, const char* suffix, const char* what, int verbose);
|
---|
| 44 |
|
---|
| 45 | /* Oeffnet Datei P->mainname+"...".Nr(2stellig) mit what*/
|
---|
| 46 | int OpenFileNo2(struct Problem *P, FILE** file, const char* suffix, int No, const char* what, int verbose);
|
---|
| 47 | /* Oeffnet Datei P->Files.mainname+"...".Nr(4stellig) mit what*/
|
---|
| 48 | int OpenFileNo(struct Problem *P, FILE** file, const char* suffix, int No, const char* what, int verbose);
|
---|
| 49 | /* Oeffnet Datei P->Files.mainname+"...".No.postfix mit what*/
|
---|
| 50 | int OpenFileNoPost(struct Problem *P, FILE** file, const char* suffix, int No, const char* postfix, const char* what, int verbose);
|
---|
| 51 | /* wie oben, nur mit zwei Nummern, %04i und %02i */
|
---|
| 52 | int OpenFileNoNo(struct Problem *P, FILE** file, const char* suffix, int No1, int No2, const char* what, int verbose);
|
---|
| 53 |
|
---|
| 54 | void OutputNorm (FILE *out, struct Problem *P);
|
---|
| 55 | void InitOutputFiles(struct Problem *P);
|
---|
| 56 | void InitOutVisArray(struct Problem *P);
|
---|
| 57 | void CloseOutputFiles(struct Problem *P);
|
---|
| 58 | void OutputVisAllOrbital(struct Problem *P, int offset, int increment, enum PsiTypeTag type);
|
---|
| 59 | void OutputCurrentDensity(struct Problem *P);
|
---|
| 60 | void OutputVis(struct Problem *P, fftw_real *srcdens);
|
---|
| 61 | void OutputVisSrcFiles(struct Problem *P, enum PsiTypeTag type);
|
---|
| 62 | void OutputSrcPsiDensity(struct Problem *P, enum PsiTypeTag type);
|
---|
| 63 | void ReadSrcFiles(struct Problem *P);
|
---|
| 64 | int ReadSrcIons(struct Problem *P);
|
---|
| 65 | int ReadSrcPsiDensity(struct Problem *P, enum PsiTypeTag type, int test, int LevSNo);
|
---|
| 66 | int TestReadnWriteSrcDensity(struct Problem *P, enum PsiTypeTag type);
|
---|
| 67 | void PlotSrcPlane(struct Problem *P, int index, double n_orth, int wavenr, fftw_real *density);
|
---|
| 68 | void PlotRealDensity(struct Problem *P, struct LatticeLevel *Lev, FILE *PlotFile, int index, double n_orth, fftw_real *density1, fftw_real *density2);
|
---|
| 69 | #endif
|
---|