ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/SimSetup.hpp
Revision: 614
Committed: Tue Jul 15 17:57:04 2003 UTC (20 years, 11 months ago) by mmeineke
File size: 1709 byte(s)
Log Message:
fixed some bugs, Changed entry_plug to info where appropriate

File Contents

# Content
1 #ifndef __SIMSETUP_H__
2 #define __SIMSETUP_H__
3
4 #include "MakeStamps.hpp"
5 #include "Globals.hpp"
6 #include "ForceFields.hpp"
7 #include "SimInfo.hpp"
8 #include "ReadWrite.hpp"
9
10 // this routine is defined in BASS_interface.cpp
11 extern void set_interface_stamps( MakeStamps* ms, Globals* g );
12
13 class SimSetup{
14
15 public:
16 SimSetup();
17 ~SimSetup();
18
19 void setSimInfo( SimInfo* the_simnfo ) { simnfo = the_simnfo; }
20 void parseFile( char* fileName );
21 void createSim( void );
22
23
24 private:
25
26 #ifdef IS_MPI
27 void receiveParse(void);
28 #endif
29
30 void gatherInfo( void );
31 void sysObjectsCreation( void );
32 void finalInfoCheck( void );
33 void initSystemCoords( void );
34 void makeOutNames(void);
35
36 void createFF( void );
37 void compList( void );
38 void calcSysValues( void );
39 void makeSysArrays( void );
40
41 #ifdef IS_MPI
42 void mpiMolDivide( void );
43
44 int* mol2proc;
45 int* molCompType;
46
47 #endif //is_mpi
48
49 void initFromBass( void );
50 void makeMolecules( void );
51 void makeElement( double x, double y, double z );
52
53 int ensembleCase;
54 int ffCase;
55
56
57 MakeStamps* stamps;
58 Globals* globals;
59 char* inFileName;
60
61 SimInfo* info;
62
63 int n_components;
64
65 char force_field[100];
66 char ensemble[100];
67 Component** the_components;
68
69 int* components_nmol;
70 MoleculeStamp** comp_stamps; //the stamps matching the components
71 int tot_nmol;
72 int tot_atoms;
73 int tot_bonds;
74 int tot_bends;
75 int tot_torsions;
76 int tot_SRI;
77
78 Atom** the_atoms;
79 SRI** the_sris;
80 Exclude** the_excludes;
81 Molecule* the_molecules;
82 ForceFields* the_ff;
83
84 // needed by makeElement
85
86 int current_mol;
87 int current_comp_mol;
88 int current_comp;
89 int current_atom_ndx;
90
91 #ifdef IS_MPI
92 int* globalIndex;
93 #endif //is_mpi
94
95 };
96 #endif