[cig-commits] r20730 - short/3D/PyLith/trunk/libsrc/pylith/topology

knepley at geodynamics.org knepley at geodynamics.org
Wed Sep 19 05:39:56 PDT 2012


Author: knepley
Date: 2012-09-19 05:39:55 -0700 (Wed, 19 Sep 2012)
New Revision: 20730

Modified:
   short/3D/PyLith/trunk/libsrc/pylith/topology/Field.cc
Log:
Added new view for Field

Modified: short/3D/PyLith/trunk/libsrc/pylith/topology/Field.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/pylith/topology/Field.cc	2012-09-19 03:07:33 UTC (rev 20729)
+++ short/3D/PyLith/trunk/libsrc/pylith/topology/Field.cc	2012-09-19 12:39:55 UTC (rev 20730)
@@ -1022,6 +1022,15 @@
 	    << "  dimensionalize flag: " << const_cast<Field*>(this)->_metadata["default"].dimsOkay << std::endl;
   if (!_section.isNull())
     _section->view(label);
+  if (_dm) {
+    PetscSection   section;
+    PetscErrorCode err;
+
+    err = DMGetDefaultSection(_dm, &section);CHECK_PETSC_ERROR(err);
+    err = DMView(_dm, PETSC_VIEWER_STDOUT_WORLD);CHECK_PETSC_ERROR(err);
+    err = PetscSectionView(section, PETSC_VIEWER_STDOUT_WORLD);CHECK_PETSC_ERROR(err);
+    err = VecView(_localVec, PETSC_VIEWER_STDOUT_WORLD);CHECK_PETSC_ERROR(err);
+  }
 } // view
 
 // ----------------------------------------------------------------------



More information about the CIG-COMMITS mailing list