Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

pvm_pack.C

Go to the documentation of this file.
00001 
00002 #ifdef HAS_PVM
00003 
00004 #include "scatter3.h"
00005 #include "pvm3.h"
00006 
00007 // Pack and unpack scattering structures (overloaded!).
00008 
00009 // This version just sends the data as byte arrays.  It remains to
00010 // be seen what happens if the data alignment required by the system
00011 // leaves gaps in the structures...
00012 
00013 void pack(initial_state3 &init)
00014 {
00015     pvm_pkbyte((char*)&init, sizeof(init), 1);
00016 }
00017 
00018 void pack(intermediate_state3 &inter)
00019 {
00020     pvm_pkbyte((char*)&inter, sizeof(inter), 1);
00021 }
00022 
00023 void pack(final_state3 &final)
00024 {
00025     pvm_pkbyte((char*)&final, sizeof(final), 1);
00026 }
00027 
00028 void unpack(initial_state3 &init)
00029 {
00030     pvm_upkbyte((char*)&init, sizeof(init), 1);
00031 }
00032 
00033 void unpack(intermediate_state3 &inter)
00034 {
00035     pvm_upkbyte((char*)&inter, sizeof(inter), 1);
00036 }
00037 
00038 void unpack(final_state3 &final)
00039 {
00040     pvm_upkbyte((char*)&final, sizeof(final), 1);
00041 }
00042 
00043 #endif

Generated at Sun Feb 24 09:57:12 2002 for STARLAB by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001