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

knepley at geodynamics.org knepley at geodynamics.org
Thu Apr 19 13:08:26 PDT 2007


Author: knepley
Date: 2007-04-19 13:08:26 -0700 (Thu, 19 Apr 2007)
New Revision: 6609

Modified:
   short/3D/PyLith/branches/pylith-0.8/pylith3d/module/mesh.cc
Log:
Fixed compile bug with new PETSc


Modified: short/3D/PyLith/branches/pylith-0.8/pylith3d/module/mesh.cc
===================================================================
--- short/3D/PyLith/branches/pylith-0.8/pylith3d/module/mesh.cc	2007-04-19 17:50:20 UTC (rev 6608)
+++ short/3D/PyLith/branches/pylith-0.8/pylith3d/module/mesh.cc	2007-04-19 20:08:26 UTC (rev 6609)
@@ -225,7 +225,7 @@
   m->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<ALE::Mesh::topology_type>::distributeMesh(m, self->partitioner);
+  m = ALECompat::New::Distribution<ALECompat::Mesh::topology_type>::distributeMesh(m, self->partitioner);
   ierr = MeshCompatSetMesh(self->mesh, m);
   debug << journal::at(__HERE__) << "[" << rank << "]Distributed PETSc Mesh"  << journal::endl;
   ierr = ReadBoundary_PyLith(self->meshBcFile, PETSC_FALSE, &numBoundaryVertices, &numBoundaryComponents, &boundaryVertices, &boundaryValues);
@@ -312,7 +312,6 @@
   if (m->debug()) {
     s->view("Displacement field");
   }
-  ierr = SectionRealDestroy(section);
   debug << journal::at(__HERE__) << "[" << rank << "]Created displacement Field"  << journal::endl;
 
   m->getFactory()->constructInverseOrder(m->getFactory()->getLocalNumbering(m->getTopology(), 0, m->getTopology()->depth()));
@@ -331,7 +330,7 @@
 
   Obj<ALECompat::Mesh> m;
 
-  ierr = MeshGetMesh(self->mesh, m);
+  ierr = MeshCompatGetMesh(self->mesh, m);
   const ALE::Obj<ALECompat::Mesh::order_type>& offsets = m->getFactory()->getGlobalOrder(m->getTopology(), 0, "displacement", m->getRealSection("displacement")->getAtlas());
   int localSize = offsets->getLocalSize();
   int globalSize = offsets->getGlobalSize();



More information about the cig-commits mailing list