Ignore:
Timestamp:
Jul 24, 2009, 10:38:32 AM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
53d153
Parents:
a048fa (diff), 47548d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Frederik Heber <heber@…> (07/23/09 14:23:32)
git-committer:
Frederik Heber <heber@…> (07/24/09 10:38:32)
Message:

Merge branch 'master' into ConcaveHull

Conflicts:

molecuilder/src/analyzer.cpp
molecuilder/src/bond.cpp
molecuilder/src/boundary.cpp
molecuilder/src/boundary.hpp
molecuilder/src/builder.cpp
molecuilder/src/config.cpp
molecuilder/src/datacreator.cpp
molecuilder/src/datacreator.hpp
molecuilder/src/defs.hpp
molecuilder/src/ellipsoid.cpp
molecuilder/src/joiner.cpp
molecuilder/src/molecules.cpp
molecuilder/src/molecules.hpp
molecuilder/src/parser.cpp
molecuilder/src/parser.hpp

merges:

compilation fixes:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/molecules.hpp

    ra048fa rc3a303  
    1010
    1111// GSL headers
     12#include <gsl/gsl_eigen.h>
     13#include <gsl/gsl_heapsort.h>
     14#include <gsl/gsl_linalg.h>
     15#include <gsl/gsl_matrix.h>
    1216#include <gsl/gsl_multimin.h>
    1317#include <gsl/gsl_vector.h>
    14 #include <gsl/gsl_matrix.h>
    15 #include <gsl/gsl_eigen.h>
    16 #include <gsl/gsl_heapsort.h>
     18#include <gsl/gsl_randist.h>
    1719
    1820// STL headers
     
    156158};
    157159
    158 ostream & operator << (ostream &ost, atom &a);
     160ostream & operator << (ostream &ost, const atom &a);
    159161
    160162/** Bonds between atoms.
     
    195197};
    196198
    197 ostream & operator << (ostream &ost, bond &b);
     199
     200ostream & operator << (ostream &ost, const bond &b);
    198201
    199202class MoleculeLeafClass;
     203
     204
     205#define MaxThermostats 6      //!< maximum number of thermostat entries in Ions#ThermostatNames and Ions#ThermostatImplemented
     206enum thermostats { None, Woodcock, Gaussian, Langevin, Berendsen, NoseHoover };   //!< Thermostat names for output
     207
    200208
    201209/** The complete molecule.
     
    254262  bool CenterInBox(ofstream *out);
    255263  void CenterEdge(ofstream *out, Vector *max);
    256   void CenterOrigin(ofstream *out, Vector *max);
    257   void CenterGravity(ofstream *out, Vector *max);
     264  void CenterOrigin(ofstream *out);
     265  void CenterPeriodic(ofstream *out);
     266  void CenterAtVector(ofstream *out, Vector *newcenter);
    258267  void Translate(const Vector *x);
    259268  void TranslatePeriodically(const Vector *trans);
     
    261270  void Align(Vector *n);
    262271  void Scale(double **factor);
    263   void DetermineCenter(Vector &center);
     272  void DeterminePeriodicCenter(Vector &center);
    264273  Vector * DetermineCenterOfGravity(ofstream *out);
    265274  Vector * DetermineCenterOfAll(ofstream *out);
    266   void SetNameFromFilename(char *filename);
     275  void SetNameFromFilename(const char *filename);
    267276  void SetBoxDimension(Vector *dim);
    268277  double * ReturnFullMatrixforSymmetric(double *cell_size);
    269278  void ScanForPeriodicCorrection(ofstream *out);
     279  bool VerletForceIntegration(ofstream *out, char *file, config &configuration);
     280  void Thermostats(config &configuration, double ActualTemp, int Thermostat);
    270281  void PrincipalAxisSystem(ofstream *out, bool DoRotate);
    271282  double VolumeOfConvexEnvelope(ofstream *out, bool IsAngstroem);
    272283  Vector* FindEmbeddingHole(ofstream *out, molecule *srcmol);
    273284
    274   bool VerletForceIntegration(char *file, double delta_t, bool IsAngstroem);
    275 
     285
     286  double ConstrainedPotential(ofstream *out, atom **permutation, int start, int end, double *constants, bool IsAngstroem);
     287  double MinimiseConstrainedPotential(ofstream *out, atom **&permutation, int startstep, int endstep, bool IsAngstroem);
     288  void EvaluateConstrainedForces(ofstream *out, int startstep, int endstep, atom **PermutationMap, ForceMatrix *Force);
     289  bool LinearInterpolationBetweenConfiguration(ofstream *out, int startstep, int endstep, const char *prefix, config &configuration);
     290       
    276291  bool CheckBounds(const Vector *x) const;
    277292  void GetAlignvector(struct lsq_params * par) const;
     
    349364  bool AddHydrogenCorrection(ofstream *out, char *path);
    350365  bool StoreForcesFile(ofstream *out, char *path, int *SortIndex);
    351   bool insert(molecule *mol);
     366  void insert(molecule *mol);
    352367  molecule * ReturnIndex(int index);
    353368  bool OutputConfigForListOfFragments(ofstream *out, config *configuration, int *SortIndex);
     
    429444    char *databasepath;
    430445
     446    int DoConstrainedMD;
     447    int MaxOuterStep;
     448    int Thermostat;
     449    int *ThermostatImplemented;
     450    char **ThermostatNames;
     451    double TempFrequency;
     452    double alpha;
     453    double HooverMass;
     454    double TargetTemp;
     455    int ScaleTempStep;
     456   
    431457  private:
    432458    char *mainname;
     
    449475    int Seed;
    450476
    451     int MaxOuterStep;
    452477    int OutVisStep;
    453478    int OutSrcStep;
    454     double TargetTemp;
    455     int ScaleTempStep;
    456479    int MaxPsiStep;
    457480    double EpsWannier;
     
    501524  char *GetDefaultPath() const;
    502525  void SetDefaultPath(const char *path);
     526  void InitThermostats(ifstream *source);
    503527};
    504528
Note: See TracChangeset for help on using the changeset viewer.