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

brad at geodynamics.org brad at geodynamics.org
Thu Oct 14 16:53:31 PDT 2010


Author: brad
Date: 2010-10-14 16:53:30 -0700 (Thu, 14 Oct 2010)
New Revision: 17276

Modified:
   short/3D/PyLith/trunk/libsrc/meshio/DataWriterHDF5.cc
Log:
Readded scatter to cell fields (use it to copy values from section to PETSc vector).

Modified: short/3D/PyLith/trunk/libsrc/meshio/DataWriterHDF5.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/meshio/DataWriterHDF5.cc	2010-10-14 22:39:34 UTC (rev 17275)
+++ short/3D/PyLith/trunk/libsrc/meshio/DataWriterHDF5.cc	2010-10-14 23:53:30 UTC (rev 17276)
@@ -218,6 +218,9 @@
     std::cout << "GLOBAL ORDER LOCAL SIZE: " << globalOrder->getLocalSize() << std::endl;
 
 #endif
+    // TODO: Create scatter only if necessary
+    field.createScatter();
+    field.scatterSectionToVector();
 
     PetscErrorCode err = 0;
     err = VecView(vector, _viewer);



More information about the CIG-COMMITS mailing list