[cig-commits] r13953 - short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio
brad at geodynamics.org
brad at geodynamics.org
Sun Jan 25 15:10:39 PST 2009
Author: brad
Date: 2009-01-25 15:10:39 -0800 (Sun, 25 Jan 2009)
New Revision: 13953
Modified:
short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestMeshIO.cc
short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestMeshIOAscii.cc
short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestMeshIOCubit.cc
short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestMeshIOLagrit.cc
Log:
Improved Mesh object- added communicator and debug flag as members; added createSieveMesh().
Modified: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestMeshIO.cc
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestMeshIO.cc 2009-01-25 23:10:32 UTC (rev 13952)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestMeshIO.cc 2009-01-25 23:10:39 UTC (rev 13953)
@@ -42,7 +42,7 @@
CPPUNIT_ASSERT(0 != data.groupTypes);
} // if
- topology::Mesh* mesh = new topology::Mesh(PETSC_COMM_WORLD, data.cellDim);
+ topology::Mesh* mesh = new topology::Mesh(data.cellDim);
CPPUNIT_ASSERT(0 != mesh);
const ALE::Obj<SieveMesh>& sieveMesh = mesh->sieveMesh();
CPPUNIT_ASSERT(!sieveMesh.isNull());
Modified: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestMeshIOAscii.cc
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestMeshIOAscii.cc 2009-01-25 23:10:32 UTC (rev 13952)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestMeshIOAscii.cc 2009-01-25 23:10:39 UTC (rev 13953)
@@ -164,7 +164,7 @@
delete meshOut; meshOut = 0;
// Read mesh
- topology::Mesh meshIn(PETSC_COMM_WORLD, data.cellDim);
+ topology::Mesh meshIn;
iohandler.read(&meshIn);
// Make sure meshIn matches data
@@ -178,7 +178,7 @@
const char* filename)
{ // _testWriteRead
// Read mesh
- topology::Mesh mesh(PETSC_COMM_WORLD, data.cellDim);
+ topology::Mesh mesh;
MeshIOAscii iohandler;
iohandler.filename(filename);
iohandler.read(&mesh);
Modified: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestMeshIOCubit.cc
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestMeshIOCubit.cc 2009-01-25 23:10:32 UTC (rev 13952)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestMeshIOCubit.cc 2009-01-25 23:10:39 UTC (rev 13953)
@@ -117,7 +117,7 @@
iohandler.filename(filename);
// Read mesh
- topology::Mesh mesh(PETSC_COMM_WORLD, data.cellDim);
+ topology::Mesh mesh;
iohandler.read(&mesh);
// Make sure meshIn matches data
Modified: short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestMeshIOLagrit.cc
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestMeshIOLagrit.cc 2009-01-25 23:10:32 UTC (rev 13952)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/meshio/TestMeshIOLagrit.cc 2009-01-25 23:10:39 UTC (rev 13953)
@@ -146,7 +146,7 @@
#endif
// Read mesh
- topology::Mesh mesh(PETSC_COMM_WORLD, data.cellDim);
+ topology::Mesh mesh;
iohandler.read(&mesh);
// Make sure meshIn matches data
More information about the CIG-COMMITS
mailing list