[cig-commits] r11550 - short/3D/PyLith/trunk/libsrc/meshio

knepley at geodynamics.org knepley at geodynamics.org
Tue Mar 25 18:02:07 PDT 2008


Author: knepley
Date: 2008-03-25 18:02:07 -0700 (Tue, 25 Mar 2008)
New Revision: 11550

Modified:
   short/3D/PyLith/trunk/libsrc/meshio/DataWriterVTK.cc
Log:
Fixed problem with output


Modified: short/3D/PyLith/trunk/libsrc/meshio/DataWriterVTK.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/meshio/DataWriterVTK.cc	2008-03-26 00:41:32 UTC (rev 11549)
+++ short/3D/PyLith/trunk/libsrc/meshio/DataWriterVTK.cc	2008-03-26 01:02:07 UTC (rev 11550)
@@ -222,8 +222,7 @@
 	      << std::endl;
 
     // Correctly handle boundary and fault meshes
-    //const int depth = mesh->depth();
-    const int depth = (0 == label) ? 1 : labelId;
+    const int depth = (0 == label) ? mesh->depth() : labelId;
     const std::string labelName = (0 == label) ?
       ((mesh->hasLabel("censored depth")) ? "censored depth" : "depth") : label;
     const ALE::Obj<Mesh::numbering_type>& numbering = 



More information about the cig-commits mailing list