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

tautges at mcs.anl.gov tautges at mcs.anl.gov
Sat Apr 17 10:34:44 CDT 2010


Author: tautges
Date: 2010-04-17 10:34:44 -0500 (Sat, 17 Apr 2010)
New Revision: 3789

Modified:
   MOAB/trunk/src/Core.cpp
   MOAB/trunk/src/parallel/ParallelComm.cpp
   MOAB/trunk/src/parallel/moab/ParallelComm.hpp
Log:
Add a bit more output when checking shared handles fails, and change
slightly assignment of coordinates, for BG/P compatibility.



Modified: MOAB/trunk/src/Core.cpp
===================================================================
--- MOAB/trunk/src/Core.cpp	2010-04-16 22:52:39 UTC (rev 3788)
+++ MOAB/trunk/src/Core.cpp	2010-04-17 15:34:44 UTC (rev 3789)
@@ -767,9 +767,9 @@
     y += offset;
     z += offset;
     for (EntityID j = 0; j < count; ++j) {
-      *coords = *x; ++coords; ++x;
-      *coords = *y; ++coords; ++y;
-      *coords = *z; ++coords; ++z;
+      coords[3*j] = x[j];
+      coords[3*j+1] = y[j];
+      coords[3*j+2] = z[j];
     }
   }
   

Modified: MOAB/trunk/src/parallel/ParallelComm.cpp
===================================================================
--- MOAB/trunk/src/parallel/ParallelComm.cpp	2010-04-16 22:52:39 UTC (rev 3788)
+++ MOAB/trunk/src/parallel/ParallelComm.cpp	2010-04-17 15:34:44 UTC (rev 3789)
@@ -2992,7 +2992,7 @@
   RRA("Trouble getting iface procs.");
 
 #ifndef NDEBUG
-  result = check_all_shared_handles();
+  result = check_all_shared_handles(true);
   RRA("Shared handle check failed after iface vertex exchange.");
 #endif  
 
@@ -3011,6 +3011,10 @@
   MPE_Log_event(RESOLVE_END, procConfig.proc_rank(), "Exiting resolve_shared_ents.");
 #endif
 
+//  std::ostringstream ent_str;
+//  ent_str << "mesh." << procConfig.proc_rank() << ".h5m";
+//  mbImpl->write_mesh(ent_str.str().c_str());
+
     // done
   return result;
 }
@@ -4001,7 +4005,7 @@
 #ifndef NDEBUG
     result = check_sent_ents(allsent);
     if (MB_SUCCESS != result) std::cout << "Failed check." << std::endl;
-    result = check_all_shared_handles();
+    result = check_all_shared_handles(true);
     if (MB_SUCCESS != result) std::cout << "Failed check." << std::endl;
 #endif
 


More information about the moab-dev mailing list