[cig-commits] r16130 - in short/3D/PyLith/trunk: libsrc/faults unittests/libtests/faults

brad at geodynamics.org brad at geodynamics.org
Thu Jan 14 13:12:00 PST 2010


Author: brad
Date: 2010-01-14 13:12:00 -0800 (Thu, 14 Jan 2010)
New Revision: 16130

Modified:
   short/3D/PyLith/trunk/libsrc/faults/FaultCohesiveDynL.cc
   short/3D/PyLith/trunk/unittests/libtests/faults/TestFaultCohesiveDynL.cc
Log:
Turned off some debugging output.

Modified: short/3D/PyLith/trunk/libsrc/faults/FaultCohesiveDynL.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/faults/FaultCohesiveDynL.cc	2010-01-07 22:14:24 UTC (rev 16129)
+++ short/3D/PyLith/trunk/libsrc/faults/FaultCohesiveDynL.cc	2010-01-14 21:12:00 UTC (rev 16130)
@@ -1692,8 +1692,7 @@
     
     _dbInitialTract->close();
 
-    // debugging
-    traction.view("INITIAL TRACTIONS");
+    //traction.view("INITIAL TRACTIONS"); // DEBUGGING
   } // if
 } // _getInitialTractions
 

Modified: short/3D/PyLith/trunk/unittests/libtests/faults/TestFaultCohesiveDynL.cc
===================================================================
--- short/3D/PyLith/trunk/unittests/libtests/faults/TestFaultCohesiveDynL.cc	2010-01-07 22:14:24 UTC (rev 16129)
+++ short/3D/PyLith/trunk/unittests/libtests/faults/TestFaultCohesiveDynL.cc	2010-01-14 21:12:00 UTC (rev 16130)
@@ -164,7 +164,7 @@
 
   // Initial tractions
   if (0 != fault._dbInitialTract) {
-    fault._fields->get("initial traction").view("INITIAL TRACTIONS"); // DEBUGGING
+    //fault._fields->get("initial traction").view("INITIAL TRACTIONS"); // DEBUGGING
     const ALE::Obj<RealSection>& tractionSection = fault._fields->get(
         "initial traction").section();
     CPPUNIT_ASSERT(!tractionSection.isNull());
@@ -255,6 +255,9 @@
       for (int i = 0; i < fiberDimE; ++i) {
         const int index = iVertex * spaceDim + i;
         const double valE = valsE[index];
+	std::cout << "valE: " << valE
+		  << ", val: " << vals[i]
+		  << std::endl;
         if (fabs(valE) > tolerance)
           CPPUNIT_ASSERT_DOUBLES_EQUAL(1.0, vals[i]/valE, tolerance);
         else
@@ -354,7 +357,7 @@
   fault.updateStateVars(t, &fields);
   fault._calcTractions(&tractions, fields.get("disp(t)"));
 
-  tractions.view("TRACTIONS");
+  //tractions.view("TRACTIONS"); // DEBUGGING
 
   const ALE::Obj<SieveSubMesh>& faultSieveMesh = fault._faultMesh->sieveMesh();
   CPPUNIT_ASSERT(!faultSieveMesh.isNull());



More information about the CIG-COMMITS mailing list