ComputeDPMEMsgs.h

Go to the documentation of this file.
00001 
00007 #ifndef COMPUTEDPMEMSGS_H
00008 #define COMPUTEDPMEMSGS_H
00009 
00010 #include "charm++.h"
00011 
00012 #include "NamdTypes.h"
00013 #include "ComputeMgr.decl.h"
00014 
00015 #ifdef DPME
00016 #include "dpme2.h"
00017 #else
00018 #define Pme2Particle char
00019 #define PmeVector char
00020 #endif
00021 
00022 class ComputeDPMEDataMsg : public CMessage_ComputeDPMEDataMsg {
00023 public:
00024   // data members
00025   int node;
00026   int numParticles;
00027   Pme2Particle *particles;
00028 
00029   // constructor and destructor
00030   ComputeDPMEDataMsg(void);
00031   ~ComputeDPMEDataMsg(void);
00032 
00033   // pack and unpack functions
00034   static void* pack (ComputeDPMEDataMsg *msg);
00035   static ComputeDPMEDataMsg* unpack(void *ptr);
00036 };
00037 
00038 
00039 class ComputeDPMEResultsMsg : public CMessage_ComputeDPMEResultsMsg {
00040 public:
00041   // data members
00042   int node;
00043   int numParticles;
00044   PmeVector *forces;
00045 
00046   // constructor and destructor
00047   ComputeDPMEResultsMsg(void);
00048   ~ComputeDPMEResultsMsg(void);
00049 
00050   // pack and unpack functions
00051   static void* pack(ComputeDPMEResultsMsg *msg);
00052   static ComputeDPMEResultsMsg* unpack(void *ptr);
00053 };
00054 
00055 
00056 #endif
00057 

Generated on Sat Sep 23 01:17:11 2017 for NAMD by  doxygen 1.4.7