1 |
|
#ifndef __SIMSETUP_H__ |
2 |
|
#define __SIMSETUP_H__ |
3 |
|
#include <string> |
4 |
+ |
#include "StringUtils.hpp" |
5 |
|
#include "MakeStamps.hpp" |
6 |
|
#include "Globals.hpp" |
7 |
|
#include "ForceFields.hpp" |
13 |
|
// this routine is defined in BASS_interface.cpp |
14 |
|
extern void set_interface_stamps( MakeStamps* ms, Globals* g ); |
15 |
|
|
15 |
– |
string getPrefix(const string& str ){ |
16 |
– |
string prefix = str; |
17 |
– |
int pos; |
18 |
– |
|
19 |
– |
pos = prefix.rfind("."); |
20 |
– |
return prefix.substr(0, pos); |
21 |
– |
}; |
22 |
– |
|
16 |
|
class SimSetup{ |
17 |
|
|
18 |
|
public: |
25 |
|
void parseFile( char* fileName ); |
26 |
|
void createSim( void ); |
27 |
|
|
35 |
– |
|
28 |
|
private: |
29 |
|
|
30 |
|
#ifdef IS_MPI |
53 |
|
|
54 |
|
#endif //is_mpi |
55 |
|
|
56 |
< |
void initFromBass( void ); |
56 |
> |
void initFromMetaDataFile( void ); |
57 |
|
void makeMolecules( void ); |
58 |
|
void makeElement( double x, double y, double z ); |
59 |
|
|