[cig-commits] r21647 - short/3D/PyLith/branches/v1.8-stable/libsrc/pylith/faults

brad at geodynamics.org brad at geodynamics.org
Tue Mar 26 16:50:40 PDT 2013


Author: brad
Date: 2013-03-26 16:50:39 -0700 (Tue, 26 Mar 2013)
New Revision: 21647

Modified:
   short/3D/PyLith/branches/v1.8-stable/libsrc/pylith/faults/FaultCohesiveImpulses.cc
Log:
Started work on fixing impulse parallel bug.

Modified: short/3D/PyLith/branches/v1.8-stable/libsrc/pylith/faults/FaultCohesiveImpulses.cc
===================================================================
--- short/3D/PyLith/branches/v1.8-stable/libsrc/pylith/faults/FaultCohesiveImpulses.cc	2013-03-26 22:45:42 UTC (rev 21646)
+++ short/3D/PyLith/branches/v1.8-stable/libsrc/pylith/faults/FaultCohesiveImpulses.cc	2013-03-26 23:50:39 UTC (rev 21647)
@@ -318,6 +318,14 @@
   const ALE::Obj<SieveSubMesh>& faultSieveMesh = _faultMesh->sieveMesh();
   assert(!faultSieveMesh.isNull());
 
+#if 0 // GET GLOBAL ORDER
+  assert(!sieveMesh.isNull());
+  const ALE::Obj<SieveMesh::order_type>& globalOrder =
+      sieveMesh->getFactory()->getGlobalOrder(sieveMesh, "default",
+					      residualSection);
+  assert(!globalOrder.isNull());
+#endif
+
   scalar_array coordsVertex(spaceDim);
   const ALE::Obj<RealSection>& coordsSection = faultSieveMesh->getRealSection("coordinates");
   assert(!coordsSection.isNull());
@@ -331,8 +339,15 @@
   int count = 0;
   const int numVertices = _cohesiveVertices.size();
   for (int iVertex=0; iVertex < numVertices; ++iVertex) {
+    const int v_lagrange = _cohesiveVertices[iVertex].lagrange;
     const int v_fault = _cohesiveVertices[iVertex].fault;
 
+#if 0 // USE GLOBAL ORDER
+    // Only create impulses on local vertices
+    if (!globalOrder->isLocal(v_lagrange))
+      continue;
+#endif
+
     coordsSection->restrictPoint(v_fault, &coordsVertex[0], coordsVertex.size());
     _normalizer->dimensionalize(&coordsVertex[0], coordsVertex.size(), lengthScale);
 



More information about the CIG-COMMITS mailing list