[cig-commits] r6839 - short/3D/PyLith/branches/pylith-0.8/pylith3d/module

knepley at geodynamics.org knepley at geodynamics.org
Thu May 10 10:32:56 PDT 2007


Author: knepley
Date: 2007-05-10 10:32:56 -0700 (Thu, 10 May 2007)
New Revision: 6839

Modified:
   short/3D/PyLith/branches/pylith-0.8/pylith3d/module/mesh.cc
Log:
Fixed name change


Modified: short/3D/PyLith/branches/pylith-0.8/pylith3d/module/mesh.cc
===================================================================
--- short/3D/PyLith/branches/pylith-0.8/pylith3d/module/mesh.cc	2007-05-10 16:18:47 UTC (rev 6838)
+++ short/3D/PyLith/branches/pylith-0.8/pylith3d/module/mesh.cc	2007-05-10 17:32:56 UTC (rev 6839)
@@ -223,6 +223,8 @@
   ierr = MeshCompatCreatePyLith(comm, 3, self->meshInputFile, PETSC_FALSE, (PetscTruth) self->interpolateMesh, &self->mesh);
   ierr = MeshCompatGetMesh(self->mesh, m);
   m->setDebug(debugFlag);
+  //m->getTopology()->setDebug(debugFlag);
+  //m->getTopology()->getPatch(0)->setDebug(debugFlag);
   int numElements = m->getTopology()->heightStratum(0, 0)->size();
   debug << journal::at(__HERE__) << "[" << rank << "]Created new PETSc Mesh for " << self->meshInputFile << journal::endl;
   m = ALECompat::New::Distribution<ALECompat::Mesh::topology_type>::distributeMesh(m, self->partitioner);
@@ -432,7 +434,7 @@
   PetscErrorCode ierr;
 
   PetscFunctionBegin;
-  ierr = SectionRealGetLocalVector(displacement, &lv);CHKERRQ(ierr);
+  ierr = SectionRealCreateLocalVector(displacement, &lv);CHKERRQ(ierr);
   ierr = PetscObjectQuery((PetscObject) sol, "injection", (PetscObject *) &injection);CHKERRQ(ierr);
   ierr = VecScatterBegin(injection, sol, lv, INSERT_VALUES, SCATTER_REVERSE);CHKERRQ(ierr);
   ierr = VecScatterEnd(injection, sol, lv, INSERT_VALUES, SCATTER_REVERSE);CHKERRQ(ierr);



More information about the cig-commits mailing list