45 |
|
|
46 |
|
/** |
47 |
|
* @class SimCreator SimCreator.hpp "brains/SimCreator.hpp" |
48 |
< |
* @brief |
48 |
> |
* The only responsibility of SimCreator is to parse the meta-data file and create a SimInfo |
49 |
> |
* instance based on the information returned by parser. |
50 |
|
*/ |
51 |
|
class SimCreator { |
52 |
|
public: |
78 |
|
/** create the molecules belong to current processor*/ |
79 |
|
virtual void createMolecules(); |
80 |
|
|
81 |
< |
/** Sets the global index for atoms, rigidbodies and cutoff groups */ |
81 |
> |
/** |
82 |
> |
* Sets the global index for atoms, rigidbodies and cutoff groups and fill up |
83 |
> |
* globalGroupMembership and globalMolMembership arrays which map atoms' |
84 |
> |
* global index to the global index of the groups (or molecules) they belong to. |
85 |
> |
* These array are never changed during the simulation. |
86 |
> |
*/ |
87 |
|
void setGlobalIndex(); |
88 |
|
|
89 |
|
private: |
91 |
|
/** Extracts the molecules stamps and adds them into SimInfo class */ |
92 |
|
void compList(MakeStamps* stamps, Globals* globals, |
93 |
|
std::vector<std::pair<MoleculeStamp*, int> >& moleculeStamps) ; |
94 |
< |
|
89 |
< |
/** Initialize fortran, mainly set the cutoff radius and setup*/ |
90 |
< |
void initFortran(SimInfo* info); |
91 |
< |
|
94 |
> |
|
95 |
|
std::string mdFileName_; //save the meta-data file name which may be used later |
96 |
|
}; |
97 |
|
|