[MOAB-dev] r5611 - in MOAB/branches/NCparperiodic: itaps/imesh src src/io src/moab test

tautges at mcs.anl.gov tautges at mcs.anl.gov
Fri Jun 29 10:07:29 CDT 2012


Author: tautges
Date: 2012-06-29 10:07:29 -0500 (Fri, 29 Jun 2012)
New Revision: 5611

Modified:
   MOAB/branches/NCparperiodic/itaps/imesh/iMesh_MOAB.cpp
   MOAB/branches/NCparperiodic/src/ScdElementData.cpp
   MOAB/branches/NCparperiodic/src/ScdElementData.hpp
   MOAB/branches/NCparperiodic/src/ScdInterface.cpp
   MOAB/branches/NCparperiodic/src/SequenceManager.cpp
   MOAB/branches/NCparperiodic/src/SequenceManager.hpp
   MOAB/branches/NCparperiodic/src/StructuredElementSeq.cpp
   MOAB/branches/NCparperiodic/src/StructuredElementSeq.hpp
   MOAB/branches/NCparperiodic/src/io/ReadNC.cpp
   MOAB/branches/NCparperiodic/src/io/ReadNC.hpp
   MOAB/branches/NCparperiodic/src/moab/ScdInterface.hpp
   MOAB/branches/NCparperiodic/test/scdseq_test.cpp
Log:
Working copy of diffs for debugging parallel periodic.



Modified: MOAB/branches/NCparperiodic/itaps/imesh/iMesh_MOAB.cpp
===================================================================
--- MOAB/branches/NCparperiodic/itaps/imesh/iMesh_MOAB.cpp	2012-06-29 15:05:40 UTC (rev 5610)
+++ MOAB/branches/NCparperiodic/itaps/imesh/iMesh_MOAB.cpp	2012-06-29 15:07:29 UTC (rev 5611)
@@ -3307,7 +3307,9 @@
   CHKERR(rval, "Trouble creating scd vertex sequence.");
 
     // set the global box parameters
-  if (global_dims) scd_box->set_global_box_dims(global_dims);
+  if (global_dims) {
+    for (int i = 0; i < 6; i++) scd_box->par_data().gDims[i] = global_dims[i];
+  }
 
   tmp_range.insert(scd_box->start_vertex(), scd_box->start_vertex()+scd_box->num_vertices()-1);
   tmp_range.insert(scd_box->start_element(), scd_box->start_element()+scd_box->num_elements()-1);

Modified: MOAB/branches/NCparperiodic/src/ScdElementData.cpp
===================================================================
--- MOAB/branches/NCparperiodic/src/ScdElementData.cpp	2012-06-29 15:05:40 UTC (rev 5610)
+++ MOAB/branches/NCparperiodic/src/ScdElementData.cpp	2012-06-29 15:07:29 UTC (rev 5611)
@@ -25,14 +25,14 @@
 
 EntityID ScdElementData::calc_num_entities(EntityHandle start_handle,
                                            int irange, int jrange, int krange, 
-                                           bool is_periodic_i, bool is_periodic_j)
+                                           int *is_periodic)
 {
   size_t result = 1;
   switch (CN::Dimension(TYPE_FROM_HANDLE(start_handle))) {
     default: result = 0; assert( false ); 
     case 3: result *= krange;
-    case 2: result *= (is_periodic_j ? (jrange+1) : jrange);
-    case 1: result *= (is_periodic_i ? (irange+1) : irange);
+    case 2: result *= (is_periodic && is_periodic[1] ? (jrange+1) : jrange);
+    case 1: result *= (is_periodic && is_periodic[0] ? (irange+1) : irange);
   }
   return result;
 }
@@ -41,17 +41,17 @@
                              EntityHandle start_handle,
                              const int imin, const int jmin, const int kmin,
                              const int imax, const int jmax, const int kmax,
-                             bool is_periodic_i, bool is_periodic_j) 
+                             int *is_periodic)
     : SequenceData(0, start_handle,
                    start_handle + 
-                   calc_num_entities( start_handle, imax-imin, jmax-jmin, kmax-kmin, is_periodic_i, is_periodic_j)
+                   calc_num_entities( start_handle, imax-imin, jmax-jmin, kmax-kmin, is_periodic)
                    - 1)
 {
     // need to have meaningful parameters


More information about the moab-dev mailing list