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

hongjun at mcs.anl.gov hongjun at mcs.anl.gov
Sun Sep 4 00:46:56 CDT 2011


Author: hongjun
Date: 2011-09-04 00:46:55 -0500 (Sun, 04 Sep 2011)
New Revision: 5151

Modified:
   cgm/trunk/geom/parallel/TDParallel.hpp
Log:
o Sorry, omitted this file from previous commit
o Passes make check 


Modified: cgm/trunk/geom/parallel/TDParallel.hpp
===================================================================
--- cgm/trunk/geom/parallel/TDParallel.hpp	2011-09-02 20:18:27 UTC (rev 5150)
+++ cgm/trunk/geom/parallel/TDParallel.hpp	2011-09-04 05:46:55 UTC (rev 5151)
@@ -36,6 +36,8 @@
   // if this entity is surface, the first processor will mesh it
   DLIList<int> m_sharedProcList;
 
+  DLIList<int> m_ghostProcList;
+
   // back pointer to the owning entity
   ToolDataUser *ownerEntity;
 
@@ -48,7 +50,8 @@
 public:
   
   TDParallel(ToolDataUser *owner = NULL, DLIList<int> *shared_bodies = NULL,
-	     DLIList<int> *shared_procs = NULL, int unique_id = -1, int interface = 0);
+	     DLIList<int> *shared_procs = NULL,
+             int unique_id = -1, int interface = 0);
   
   virtual ~TDParallel();
     //-constructor and destructor
@@ -61,6 +64,8 @@
   DLIList<int>* get_shared_proc_list();
   void set_shared_proc_list(DLIList<int> list);
 
+  DLIList<int>* get_ghost_proc_list();
+
   DLIList<int>* get_local_body_list();
   DLIList<int>* get_non_local_body_list();
 
@@ -84,6 +89,8 @@
 
   void add_shared_proc(unsigned int proc);
 
+  void add_ghost_proc(unsigned int proc);
+
   bool is_shared_proc(unsigned int proc);
 };
 
@@ -103,6 +110,10 @@
   return &m_sharedProcList;
 }
 
+inline DLIList<int>* TDParallel::get_ghost_proc_list() {
+  return &m_ghostProcList;
+}
+
 inline unsigned int TDParallel::get_charge_proc()
 {


More information about the cgma-dev mailing list