Changeset e78824 for molecuilder/src


Ignore:
Timestamp:
Aug 3, 2009, 2:58:43 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
4dca8e
Parents:
834ff3
Message:

class config definitions moved to their own header file.

NOTE: Tesselation of heptan was working correctly! (The config file just grew bigger and bigger that's why more and more triangles were added)

Location:
molecuilder/src
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/Makefile.am

    r834ff3 re78824  
    11SOURCE = atom.cpp bond.cpp boundary.cpp builder.cpp config.cpp element.cpp ellipsoid.cpp helpers.cpp linkedcell.cpp moleculelist.cpp molecules.cpp parser.cpp periodentafel.cpp tesselation.cpp tesselationhelpers.cpp vector.cpp verbose.cpp
    2 HEADER = atom.hpp bond.hpp boundary.hpp defs.hpp ellipsoid.hpp helpers.hpp linkedcell.hpp molecules.hpp parser.hpp periodentafel.hpp stackclass.hpp tesselation.hpp tesselationhelpers.hpp vector.hpp
     2HEADER = atom.hpp bond.hpp boundary.hpp config.hpp defs.hpp ellipsoid.hpp helpers.hpp linkedcell.hpp molecules.hpp parser.hpp periodentafel.hpp stackclass.hpp tesselation.hpp tesselationhelpers.hpp vector.hpp
    33
    44bin_PROGRAMS = molecuilder joiner analyzer
  • molecuilder/src/boundary.hpp

    r834ff3 re78824  
    1212#include <deque>
    1313
     14#include "config.hpp"
    1415#include "linkedcell.hpp"
    1516#include "molecules.hpp"
  • molecuilder/src/config.cpp

    r834ff3 re78824  
    55 */
    66
    7 #include "molecules.hpp"
     7#include "config.hpp"
    88
    99/******************************** Functions for class ConfigFileBuffer **********************/
  • molecuilder/src/moleculelist.cpp

    r834ff3 re78824  
    55 */
    66
     7#include "config.hpp"
    78#include "molecules.hpp"
    89
  • molecuilder/src/molecules.cpp

    r834ff3 re78824  
    55 */
    66
     7#include "config.hpp"
    78#include "molecules.hpp"
    89
  • molecuilder/src/molecules.hpp

    r834ff3 re78824  
    3535#include "vector.hpp"
    3636
    37 class config;
    3837class molecule;
    3938class MoleculeLeafClass;
     
    344343
    345344
    346 /** The config file.
    347  * The class contains all parameters that control a dft run also functions to load and save.
    348  */
    349 class config {
    350   public:
    351     int PsiType;
    352     int MaxPsiDouble;
    353     int PsiMaxNoUp;
    354     int PsiMaxNoDown;
    355     int MaxMinStopStep;
    356     int InitMaxMinStopStep;
    357     int ProcPEGamma;
    358     int ProcPEPsi;
    359     char *configpath;
    360     char *configname;
    361     bool FastParsing;
    362     double Deltat;
    363     string basis;
    364 
    365     char *databasepath;
    366 
    367     int DoConstrainedMD;
    368     int MaxOuterStep;
    369     int Thermostat;
    370     int *ThermostatImplemented;
    371     char **ThermostatNames;
    372     double TempFrequency;
    373     double alpha;
    374     double HooverMass;
    375     double TargetTemp;
    376     int ScaleTempStep;
    377    
    378   private:
    379     char *mainname;
    380     char *defaultpath;
    381     char *pseudopotpath;
    382 
    383     int DoOutVis;
    384     int DoOutMes;
    385     int DoOutNICS;
    386     int DoOutOrbitals;
    387     int DoOutCurrent;
    388     int DoFullCurrent;
    389     int DoPerturbation;
    390     int DoWannier;
    391     int CommonWannier;
    392     double SawtoothStart;
    393     int VectorPlane;
    394     double VectorCut;
    395     int UseAddGramSch;
    396     int Seed;
    397 
    398     int OutVisStep;
    399     int OutSrcStep;
    400     int MaxPsiStep;
    401     double EpsWannier;
    402 
    403     int MaxMinStep;
    404     double RelEpsTotalEnergy;
    405     double RelEpsKineticEnergy;
    406     int MaxMinGapStopStep;
    407     int MaxInitMinStep;
    408     double InitRelEpsTotalEnergy;
    409     double InitRelEpsKineticEnergy;
    410     int InitMaxMinGapStopStep;
    411 
    412     //double BoxLength[NDIM*NDIM];
    413 
    414     double ECut;
    415     int MaxLevel;
    416     int RiemannTensor;
    417     int LevRFactor;
    418     int RiemannLevel;
    419     int Lev0Factor;
    420     int RTActualUse;
    421     int AddPsis;
    422 
    423     double RCut;
    424     int StructOpt;
    425     int IsAngstroem;
    426     int RelativeCoord;
    427     int MaxTypes;
    428 
    429 
    430   int ParseForParameter(int verbose, ifstream *file, const char *name, int sequential, int const xth, int const yth, int type, void *value, int repetition, int critical);
    431   int ParseForParameter(int verbose, struct ConfigFileBuffer *FileBuffer, const char *name, int sequential, int const xth, int const yth, int type, void *value, int repetition, int critical);
    432 
    433   public:
    434   config();
    435   ~config();
    436 
    437   int TestSyntax(char *filename, periodentafel *periode, molecule *mol);
    438   void Load(char *filename, periodentafel *periode, molecule *mol);
    439   void LoadOld(char *filename, periodentafel *periode, molecule *mol);
    440   void RetrieveConfigPathAndName(string filename);
    441   bool Save(const char *filename, periodentafel *periode, molecule *mol) const;
    442   bool SaveMPQC(const char *filename, molecule *mol) const;
    443   void Edit();
    444   bool GetIsAngstroem() const;
    445   char *GetDefaultPath() const;
    446   void SetDefaultPath(const char *path);
    447   void InitThermostats(class ConfigFileBuffer *fb);
    448 };
    449 
    450345#endif /*MOLECULES_HPP_*/
    451346
Note: See TracChangeset for help on using the changeset viewer.