[MOAB-dev] r4842 - in MOAB/trunk/src/parallel: . moab

hongjun at mcs.anl.gov hongjun at mcs.anl.gov
Wed May 18 13:19:50 CDT 2011


Author: hongjun
Date: 2011-05-18 13:19:49 -0500 (Wed, 18 May 2011)
New Revision: 4842

Modified:
   MOAB/trunk/src/parallel/ParallelComm.cpp
   MOAB/trunk/src/parallel/moab/ParallelComm.hpp
Log:
o "exchange_owned_meshs" and "exchange_owned_mesh" functions are added
o They exchange input mesh entities and sets between processors
o All exchanged entities have shared proc/handle tag information
o "exchange_owned_meshs" calles "exchange_owned_mesh" twice to exchange entities before exchanging sets
o Test program is not created yet
o Passes "make check"


Modified: MOAB/trunk/src/parallel/ParallelComm.cpp
===================================================================
--- MOAB/trunk/src/parallel/ParallelComm.cpp	2011-05-18 06:20:37 UTC (rev 4841)
+++ MOAB/trunk/src/parallel/ParallelComm.cpp	2011-05-18 18:19:49 UTC (rev 4842)
@@ -53,6 +53,7 @@
 int RESOLVE_START, RESOLVE_END;
 int ENTITIES_START, ENTITIES_END;
 int RHANDLES_START, RHANDLES_END;
+int OWNED_START, OWNED_END;
 #endif
 
 namespace moab {
@@ -120,21 +121,21 @@
 void PACK_DBLS( unsigned char*& buff, const double* dbl_val, size_t num )
   { PACK( buff, dbl_val, num ); PC(num, " doubles"); }
 
-//static inline
-//void PACK_DBL( unsigned char*& buff, const double dbl_val)
-//{ PACK_DBLS( buff, &dbl_val, 1 ); }
+static inline
+void PACK_DBL( unsigned char*& buff, const double dbl_val)
+{ PACK_DBLS( buff, &dbl_val, 1 ); }
 
 static inline
 void PACK_EH( unsigned char*& buff, const EntityHandle* eh_val, size_t num )
   { PACK( buff, eh_val, num ); PC(num, " handles"); }
 
-//static inline
-//void PACK_CHAR_64( unsigned char*& buff, const char* str )
-//{
-//  memcpy(buff, str, 64 );
-//  buff += 64;
-//  PC(64, " chars");
-//}
+static inline
+void PACK_CHAR_64( unsigned char*& buff, const char* str )
+{
+  memcpy(buff, str, 64 );
+  buff += 64;
+  PC(64, " chars");
+}
 
 static inline
 void PACK_VOID( unsigned char*& buff, const void* val, size_t num )
@@ -179,13 +180,13 @@
 void UNPACK_EH( unsigned char*& buff, EntityHandle* eh_val, size_t num )
   { UNPACK(buff, eh_val, num); UPC(num, " handles"); }
 
-//static inline
-//void UNPACK_CHAR_64( unsigned char*& buff, char* char_val )
-//{


More information about the moab-dev mailing list