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 */
19
GlobalMasterIMD
();
20
~GlobalMasterIMD
();
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
41
int
IMDignoreForces
;
42
43
// My server socket handle
44
void
*
sock
;
45
46
// Connected sockets
47
ResizeArray<void *>
clients
;
48
49
// temporaries in case 3*sizeof(float) != sizeof(FloatVector)
50
float
*
coordtmp
;
51
int
coordtmpsize
;
52
};
53
54
#endif
55
GlobalMaster
Definition:
GlobalMaster.h:30
IMDOutput
Definition:
IMDOutput.h:20
GlobalMasterIMD::GlobalMasterIMD
GlobalMasterIMD()
Definition:
GlobalMasterIMD.C:53
ResizeArray.h
GlobalMasterIMD::~GlobalMasterIMD
~GlobalMasterIMD()
Definition:
GlobalMasterIMD.C:84
FloatVector
Definition:
Vector.h:24
GlobalMasterIMD::IMDignore
int IMDignore
Definition:
GlobalMasterIMD.h:38
GlobalMasterIMD::get_vmd_forces
void get_vmd_forces()
Definition:
GlobalMasterIMD.C:171
GlobalMasterIMD::coordtmpsize
int coordtmpsize
Definition:
GlobalMasterIMD.h:51
IMDEnergies
Definition:
imd.h:26
GlobalMasterIMD::sock
void * sock
Definition:
GlobalMasterIMD.h:44
ResizeArray
Definition:
packmsg.h:29
GlobalMasterIMD
Definition:
GlobalMasterIMD.h:16
GlobalMasterIMD::clients
ResizeArray< void * > clients
Definition:
GlobalMasterIMD.h:47
GlobalMasterIMD::send_energies
void send_energies(IMDEnergies *)
Definition:
GlobalMasterIMD.C:293
GlobalMaster.h
GlobalMasterIMD::IMDwait
int IMDwait
Definition:
GlobalMasterIMD.h:35
GlobalMasterIMD::calculate
virtual void calculate()
Definition:
GlobalMasterIMD.C:108
GlobalMasterIMD::IMDignoreForces
int IMDignoreForces
Definition:
GlobalMasterIMD.h:41
GlobalMasterIMD::coordtmp
float * coordtmp
Definition:
GlobalMasterIMD.h:50
GlobalMasterIMD::send_fcoords
void send_fcoords(int, FloatVector *)
Definition:
GlobalMasterIMD.C:301
imd.h
Generated by
1.8.14