ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/SimInfo.hpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/SimInfo.hpp (file contents):
Revision 1118 by tim, Mon Apr 19 03:52:27 2004 UTC vs.
Revision 1187 by chrisfen, Sat May 22 18:16:18 2004 UTC

# Line 13 | Line 13
13   #include "AbstractClasses.hpp"
14   #include "MakeStamps.hpp"
15   #include "SimState.hpp"
16 + #include "Restraints.hpp"
17  
18   #define __C
19   #include "fSimulation.h"
# Line 21 | Line 22 | class OOPSEMinimizer;
22   //#include "Minimizer.hpp"
23   //#include "OOPSEMinimizer.hpp"
24  
25 +
26 + double roundMe( double x );
27   class OOPSEMinimizer;
28   class SimInfo{
29  
# Line 91 | Line 94 | class SimInfo{ (public)
94    int useReactionField;
95    int useGB;
96    int useEAM;
97 <  
97 >  bool haveCutoffGroups;
98    bool useInitXSstate;
99    double orthoTolerance;
100  
# Line 116 | Line 119 | class SimInfo{ (public)
119    BaseIntegrator *the_integrator; // the integrator of the simulation
120  
121    OOPSEMinimizer* the_minimizer; // the energy minimizer
122 +  Restraints* restraint;
123    bool has_minimizer;
124  
125    char finalName[300];  // the name of the eor file to be written
126    char sampleName[300]; // the name of the dump file to be written
127    char statusName[300]; // the name of the stat file to be written
128 +  char rawPotName[300];  // the name of the raw file to be written
129  
130    int seed;                    //seed for random number generator
131 +
132 +  int useThermInt;        // whether or not we use thermodynamic integration
133 +  double thermIntLambda; // lambda for TI
134 +  double thermIntK;      // power of lambda for TI
135 +  double vRaw;           // unperturbed potential for TI
136 +  double vHarm;          // harmonic potential for TI
137 +  int i;                 // just an int
138 +
139 +  vector<double> mfact;
140 +  int ngroup;
141 +  vector<int> groupList;
142 +  vector<int> groupStart;
143 +  
144    // refreshes the sim if things get changed (load balanceing, volume
145    // adjustment, etc.)
146  
# Line 149 | Line 167 | class SimInfo{ (public)
167    void scaleBox( double scale );
168    
169    void setDefaultRcut( double theRcut );
170 <  void setDefaultEcr( double theEcr );
153 <  void setDefaultEcr( double theEcr, double theEst );
170 >  void setDefaultRcut( double theRcut, double theRsw );
171    void checkCutOffs( void );
172  
173    double getRcut( void )  { return rCut; }
174    double getRlist( void ) { return rList; }
175 <  double getEcr( void )   { return ecr; }
159 <  double getEst( void )   { return est; }
175 >  double getRsw( void )   { return rSw; }
176    double getMaxCutoff( void ) { return maxCutoff; }
177 <
177 >  
178    void setTime( double theTime ) { currentTime = theTime; }
179    void incrTime( double the_dt ) { currentTime += the_dt; }
180    void decrTime( double the_dt ) { currentTime -= the_dt; }
# Line 179 | Line 195 | class SimInfo{ (public)
195  
196    SimState* myConfiguration;
197  
198 <  int boxIsInit, haveRcut, haveEcr;
198 >  int boxIsInit, haveRcut, haveRsw;
199  
200    double rList, rCut; // variables for the neighborlist
201 <  double ecr;             // the electrostatic cutoff radius
202 <  double est;             // the electrostatic skin thickness
201 >  double rSw;         // the switching radius
202 >
203    double maxCutoff;
204  
205    double distXY;
# Line 206 | Line 222 | class SimInfo{ (public)
222  
223   };
224  
225 + void getFortranGroupArray(SimInfo* info, vector<double>& mfact, int& ngroup,
226 +                                                          vector<int>& groupList, vector<int>& groupStart);
227 +
228   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines