[cig-commits] r18402 - in short/3D/PyLith/trunk/libsrc: meshio topology

brad at geodynamics.org brad at geodynamics.org
Fri May 20 16:10:35 PDT 2011


Author: brad
Date: 2011-05-20 16:10:35 -0700 (Fri, 20 May 2011)
New Revision: 18402

Modified:
   short/3D/PyLith/trunk/libsrc/meshio/DataWriterHDF5.cc
   short/3D/PyLith/trunk/libsrc/topology/Field.cc
Log:
Removed debugging output.

Modified: short/3D/PyLith/trunk/libsrc/meshio/DataWriterHDF5.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/meshio/DataWriterHDF5.cc	2011-05-20 19:48:58 UTC (rev 18401)
+++ short/3D/PyLith/trunk/libsrc/meshio/DataWriterHDF5.cc	2011-05-20 23:10:35 UTC (rev 18402)
@@ -207,6 +207,13 @@
   } // if
   _viewer = 0;
   _timesteps.clear();
+
+#if 0
+  Xdmf metafile;
+  const int indexExt = _filename.find(".h5");
+  std::string xdmfFilename = std::string(_filename, 0, indexExt) + ".xmf";
+  metadata.write(xdmfFilename, _hdfFilename());
+#endif
 } // close
 
 // ----------------------------------------------------------------------
@@ -258,7 +265,7 @@
       _timesteps[field.label()] += 1;
     const int istep = _timesteps[field.label()];
 
-#if 1
+#if 0 // debugging
     field.view("writeVertexField");
     VecView(vector, PETSC_VIEWER_STDOUT_WORLD);
 #endif

Modified: short/3D/PyLith/trunk/libsrc/topology/Field.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/topology/Field.cc	2011-05-20 19:48:58 UTC (rev 18401)
+++ short/3D/PyLith/trunk/libsrc/topology/Field.cc	2011-05-20 23:10:35 UTC (rev 18402)
@@ -978,9 +978,8 @@
                                                   numbering->getChart().end(),
                                                   _section);
   assert(!order.isNull());
+  //order->view("GLOBAL ORDER"); // DEBUG
 
-  order->view("GLOBAL ORDER");
-
   // Create scatter
   err = DMMeshCreateGlobalScatter(_mesh.sieveMesh(), _section, order, true, &sinfo.scatter); 
   CHECK_PETSC_ERROR(err);



More information about the CIG-COMMITS mailing list