[cig-commits] r16471 - in short/3D/PyLith/trunk/libsrc: meshio topology
knepley at geodynamics.org
knepley at geodynamics.org
Tue Mar 30 16:42:40 PDT 2010
Author: knepley
Date: 2010-03-30 16:42:39 -0700 (Tue, 30 Mar 2010)
New Revision: 16471
Modified:
short/3D/PyLith/trunk/libsrc/meshio/MeshBuilder.cc
short/3D/PyLith/trunk/libsrc/topology/Mesh.cc
short/3D/PyLith/trunk/libsrc/topology/SubMesh.cc
Log:
Trial reordering setup
Modified: short/3D/PyLith/trunk/libsrc/meshio/MeshBuilder.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/meshio/MeshBuilder.cc 2010-03-30 23:08:00 UTC (rev 16470)
+++ short/3D/PyLith/trunk/libsrc/meshio/MeshBuilder.cc 2010-03-30 23:42:39 UTC (rev 16471)
@@ -178,7 +178,14 @@
ALE::SieveBuilder<SieveMesh>::buildCoordinates(sieveMesh, spaceDim,
&(*coordinates)[0]);
logger.stagePop();
+
+ logger.stagePush("MeshReordering");
+ ALE::Obj<ALE::Ordering<>::perm_type> reordering = new ALE::Ordering<>::perm_type(sieveMesh->comm(), sieveMesh->debug());
+
+ ALE::Ordering<>::calculateMeshReordering(sieveMesh, reordering);
+ sieveMesh->relabel(*reordering);
logger.stagePop();
+ logger.stagePop();
sieveMesh->getFactory()->clear();
} // buildMesh
Modified: short/3D/PyLith/trunk/libsrc/topology/Mesh.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/topology/Mesh.cc 2010-03-30 23:08:00 UTC (rev 16470)
+++ short/3D/PyLith/trunk/libsrc/topology/Mesh.cc 2010-03-30 23:42:39 UTC (rev 16471)
@@ -11,6 +11,7 @@
//
#include <portinfo>
+#include <stdexcept>
#include "Mesh.hh" // implementation of class methods
Modified: short/3D/PyLith/trunk/libsrc/topology/SubMesh.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/topology/SubMesh.cc 2010-03-30 23:08:00 UTC (rev 16470)
+++ short/3D/PyLith/trunk/libsrc/topology/SubMesh.cc 2010-03-30 23:42:39 UTC (rev 16471)
@@ -11,6 +11,7 @@
//
#include <portinfo>
+#include <stdexcept>
#include "SubMesh.hh" // implementation of class methods
More information about the CIG-COMMITS
mailing list