[cgma-dev] r5967 - cgm/trunk/geom/parallel

janehu at mcs.anl.gov janehu at mcs.anl.gov
Fri Feb 1 12:19:54 CST 2013


Author: janehu
Date: 2013-02-01 12:19:53 -0600 (Fri, 01 Feb 2013)
New Revision: 5967

Modified:
   cgm/trunk/geom/parallel/CABodies.cpp
   cgm/trunk/geom/parallel/CABodies.hpp
   cgm/trunk/geom/parallel/CGMParallelComm.cpp
   cgm/trunk/geom/parallel/CGMReadParallel.cpp
   cgm/trunk/geom/parallel/CGMReadParallel.hpp
   cgm/trunk/geom/parallel/Makefile.am
   cgm/trunk/geom/parallel/ProcData.hpp
   cgm/trunk/geom/parallel/TDParallel.cpp
   cgm/trunk/geom/parallel/TDParallel.hpp
   cgm/trunk/geom/parallel/test_sab.cpp
Log:
Update for parallel check with merge-cubit12.2 version codes.

Modified: cgm/trunk/geom/parallel/CABodies.cpp
===================================================================
--- cgm/trunk/geom/parallel/CABodies.cpp	2013-02-01 18:07:49 UTC (rev 5966)
+++ cgm/trunk/geom/parallel/CABodies.cpp	2013-02-01 18:19:53 UTC (rev 5967)
@@ -1,7 +1,6 @@
 //- Class:          CABodies
 //- Description:    Cubit Attribute for a list of bodies the entity is part of.
 //- Author: Hong-Jun Kim
-//- Checked By: Tim Tautges
 //- Version:
 
 #include "CABodies.hpp"
@@ -28,8 +27,8 @@
 
 
 CABodies::CABodies(RefEntity* new_attrib_owner,
-                           CubitSimpleAttrib *csa_ptr)
-        : CubitAttrib(new_attrib_owner)
+		   CubitSimpleAttrib *csa_ptr)
+  : CubitAttrib(new_attrib_owner)
 {
   assert ( csa_ptr != NULL );
   if (DEBUG_FLAG(138))
@@ -39,19 +38,32 @@
 		     (attribOwnerEntity ? attribOwnerEntity->id() : 0));
   }
 
-  //initialize();
-  
   DLIList<int*> *i_list = csa_ptr->int_data_list();
 
   // first, the ints
   i_list->reset();
   
-  int num_bodies = *(i_list->get_and_step());
-  
-  // bodyID
-  int i;
-  for (i = num_bodies; i > 0; i--)
-    bodyUniqueId.append(*(i_list->get_and_step()));
+  m_interface = *(i_list->get_and_step()); // is interface
+
+  m_uniqueID = *(i_list->get_and_step()); // unique ID
+
+  // shared bodies
+  int num_list = *(i_list->get_and_step());
+  for (int i = num_list; i > 0; i--) {
+    m_sharedBodies.append(*(i_list->get_and_step()));
+  }
+
+  // shared procs


More information about the cgma-dev mailing list