NAMD
GlobalMasterIMD.h
Go to the documentation of this file.
1 
7 #ifndef GLOBALMASTERIMD_H
8 #define GLOBALMASTERIMD_H
9 
10 #include "GlobalMaster.h"
11 #include "imd.h"
12 #include "ResizeArray.h"
13 
14 class FloatVector;
15 
16 class GlobalMasterIMD : public GlobalMaster {
17  public:
18  /* initializes this according to the simulation parameters */
21 
22  void send_energies(IMDEnergies *);
23  void send_fcoords(int, FloatVector *);
24 
25  protected:
26 
27  friend class IMDOutput;
28 
29  virtual void calculate();
30 
31  // Simple function for getting MDComm-style forces from VMD
32  void get_vmd_forces();
33 
34  // flag for whether to proceed with simulation when there are no connections
35  int IMDwait;
36 
37  // flag for whether to ignore all user input
38  int IMDignore;
39 
40  // flag for whether to ignore only forces
42 
43  // My server socket handle
44  void *sock;
45 
46  // Connected sockets
48 
49  // temporaries in case 3*sizeof(float) != sizeof(FloatVector)
50  float *coordtmp;
52 };
53 
54 #endif
55 
ResizeArray< void * > clients
void send_energies(IMDEnergies *)
virtual void calculate()
void send_fcoords(int, FloatVector *)