diff options
author | Erik Schnetter <schnetter@aei.mpg.de> | 2005-01-01 19:38:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@aei.mpg.de> | 2005-01-01 19:38:00 +0000 |
commit | 7f3c00d4f9aaab905e04ccc2ed9fbaeff841e4af (patch) | |
tree | b268ab8a03aaf0c86239b73d399a5060b9705be6 /Carpet/CarpetLib/src/gdata.hh | |
parent | a2898bab20198e06ab5121357cf1496550b05006 (diff) |
CarpetLib: Move class commstate into its own file
darcs-hash:20050101193846-891bb-7bb505d29a25b04c0d23e792eea7ff404d1f4200.gz
Diffstat (limited to 'Carpet/CarpetLib/src/gdata.hh')
-rw-r--r-- | Carpet/CarpetLib/src/gdata.hh | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/Carpet/CarpetLib/src/gdata.hh b/Carpet/CarpetLib/src/gdata.hh index 37343b18b..72d136f5e 100644 --- a/Carpet/CarpetLib/src/gdata.hh +++ b/Carpet/CarpetLib/src/gdata.hh @@ -10,6 +10,7 @@ #include "cctk.h" +#include "commstate.hh" #include "defs.hh" #include "dist.hh" #include "bbox.hh" @@ -21,32 +22,6 @@ using namespace std; -class gdata; - - - -// State information for communications -enum astate { state_recv, state_send, state_wait, state_done }; - -struct comm_state { - astate thestate; - comm_state (); - void step (); - bool done (); - ~comm_state (); - -private: - // Forbid copying and passing by value - comm_state (comm_state const &); - comm_state& operator= (comm_state const &); -public: - - queue<gdata*> tmps1, tmps2; - vector<MPI_Request> requests; // for use_waitall -}; - - - // A generic data storage without type information class gdata { |