[MOAB-dev] r5730 - MOAB/trunk/examples

iulian at mcs.anl.gov iulian at mcs.anl.gov
Mon Sep 10 10:45:47 CDT 2012


Author: iulian
Date: 2012-09-10 10:45:47 -0500 (Mon, 10 Sep 2012)
New Revision: 5730

Modified:
   MOAB/trunk/examples/IntxMeshes.cpp
   MOAB/trunk/examples/IntxMeshesOnSphere.cpp
   MOAB/trunk/examples/Makefile.am
Log:
forgot to commit the makefile for the new example with intersection of quad
meshes on the sphere


Modified: MOAB/trunk/examples/IntxMeshes.cpp
===================================================================
--- MOAB/trunk/examples/IntxMeshes.cpp	2012-09-07 23:19:27 UTC (rev 5729)
+++ MOAB/trunk/examples/IntxMeshes.cpp	2012-09-10 15:45:47 UTC (rev 5730)
@@ -62,7 +62,7 @@
 Tag redParentTag;
 Tag blueParentTag;
 
-int dbg_1 = 0;
+int dbg_1 = 1;
 ofstream mout_1;// some debug file
 double epsilon_1 = 1.e-5; // cm, for coincident points in P, the intersection area
 
@@ -789,7 +789,14 @@
             if (nP > 1) // this will also construct triangles in the new mesh, if needed
                findNodes(redT, currentBlue, P, nP);
          }
+         else
+         {
+           if (dbg_1)
+             std::cout << " redT and currentBlue do not intersect " << mb->id_from_handle(redT)
+                 <<" "<< mb->id_from_handle(currentBlue) << "\n";
 
+         }
+
       }
 
       EntityHandle blueNeighbors[3];

Modified: MOAB/trunk/examples/IntxMeshesOnSphere.cpp
===================================================================
--- MOAB/trunk/examples/IntxMeshesOnSphere.cpp	2012-09-07 23:19:27 UTC (rev 5729)
+++ MOAB/trunk/examples/IntxMeshesOnSphere.cpp	2012-09-10 15:45:47 UTC (rev 5730)
@@ -56,6 +56,7 @@
 // these will be on the out mesh
 Tag redParentTag;
 Tag blueParentTag;
+Tag countTag;
 
 // some vars for current process
 // after intersection, these var are still needed by findNodes, to establish the
@@ -118,6 +119,9 @@
   rval = mb->tag_get_handle("Negative", 1, MB_TYPE_INTEGER, blueParentTag,
       MB_TAG_SPARSE | MB_TAG_CREAT, &defaultInt);
 
+  rval = mb->tag_get_handle("Counting", 1, MB_TYPE_INTEGER, countTag,
+        MB_TAG_SPARSE | MB_TAG_CREAT, &defaultInt);
+
   return;
 }
 // vec utils


More information about the moab-dev mailing list