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

Comparing trunk/OOPSE-2.0/src/brains/SimInfo.hpp (file contents):
Revision 1930 by gezelter, Wed Jan 12 22:41:40 2005 UTC vs.
Revision 2097 by tim, Wed Mar 9 17:30:29 2005 UTC

# Line 71 | Line 71 | class Molecule;
71   //forward decalration
72   class SnapshotManager;
73   class Molecule;
74 <
74 > class SelectionManager;
75   /**
76   * @class SimInfo SimInfo.hpp "brains/SimInfo.hpp"
77   * @brief As one of the heavy weight class of OOPSE, SimInfo
# Line 255 | Line 255 | class SimInfo {
255  
256          /** Returns the center of the mass of the whole system.*/
257          Vector3d getCom();
258
259        /** Returns the seed (used for random number generator) */
260        int getSeed() {
261            return seed_;
262        }
263
264        /** Sets the seed*/
265        void setSeed(int seed) {
266            seed_ = seed;
267        }
258  
259          /** main driver function to interact with fortran during the initialization and molecule migration */
260          void update();
# Line 408 | Line 398 | class SimInfo {
398           */
399  
400          void removeExcludePairs(Molecule* mol);
401 <                
412 <        friend std::ostream& operator <<(std::ostream& o, SimInfo& info);
413 <        
414 <    private:
401 >
402  
416        
403          /** Returns the unique atom types of local processor in an array */
404          std::set<AtomType*> getUniqueAtomTypes();
405 +        
406 +        friend std::ostream& operator <<(std::ostream& o, SimInfo& info);
407  
408 +        void getCutoff(double& rcut, double& rsw);
409 +        
410 +    private:
411 +
412          /** fill up the simtype struct*/
413          void setupSimType();
414  
# Line 490 | Line 482 | class SimInfo {
482          PropertyMap properties_;                  /**< Generic Property */
483          SnapshotManager* sman_;               /**< SnapshotManager */
484  
493        int seed_; /**< seed for random number generator */
494
485          /**
486           * The reason to have a local index manager is that when molecule is migrating to other processors,
487           * the atoms and the rigid-bodies will release their local indices to LocalIndexManager. Combining the
# Line 509 | Line 499 | class SimInfo {
499          double rsw_;        /**< radius of switching function*/
500  
501          bool fortranInitialized_; /**< flag indicate whether fortran side is initialized */
502 <        
502 >
503   #ifdef IS_MPI
504      //in Parallel version, we need MolToProc
505      public:
# Line 542 | Line 532 | class SimInfo {
532           * once.
533           */        
534          std::vector<int> molToProcMap_;
535 +
536   #endif
537  
538   };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines