[cig-commits] r17963 - in short/3D/PyLith/branches/v1.5-stable: . libsrc/meshio
brad at geodynamics.org
brad at geodynamics.org
Wed Feb 23 15:22:43 PST 2011
Author: brad
Date: 2011-02-23 15:22:42 -0800 (Wed, 23 Feb 2011)
New Revision: 17963
Modified:
short/3D/PyLith/branches/v1.5-stable/configure.ac
short/3D/PyLith/branches/v1.5-stable/libsrc/meshio/MeshIOCubit.cc
Log:
Added version check for FIAT.
Modified: short/3D/PyLith/branches/v1.5-stable/configure.ac
===================================================================
--- short/3D/PyLith/branches/v1.5-stable/configure.ac 2011-02-23 23:22:00 UTC (rev 17962)
+++ short/3D/PyLith/branches/v1.5-stable/configure.ac 2011-02-23 23:22:42 UTC (rev 17963)
@@ -115,10 +115,10 @@
#CIT_CHECK_LIB_MPI
# PETSC
-CIT_PATH_PETSC([3.1.0])
-CIT_HEADER_PETSC
-CIT_CHECK_LIB_PETSC
-CIT_CHECK_LIB_PETSC_SIEVE
+#CIT_PATH_PETSC([3.1.0])
+#CIT_HEADER_PETSC
+#CIT_CHECK_LIB_PETSC
+#CIT_CHECK_LIB_PETSC_SIEVE
# Check for Python modules and packages.
CIT_PYTHON_EGG_SETUP
@@ -128,7 +128,7 @@
CIT_NUMPY_INCDIR
# FIAT
-CIT_PYTHON_MODULE([FIAT])
+CIT_PYTHON_MODULE([FIAT],[0.9.9])
# SWIG
if test "$enable_swig" = "yes" ; then
Modified: short/3D/PyLith/branches/v1.5-stable/libsrc/meshio/MeshIOCubit.cc
===================================================================
--- short/3D/PyLith/branches/v1.5-stable/libsrc/meshio/MeshIOCubit.cc 2011-02-23 23:22:00 UTC (rev 17962)
+++ short/3D/PyLith/branches/v1.5-stable/libsrc/meshio/MeshIOCubit.cc 2011-02-23 23:22:42 UTC (rev 17963)
@@ -62,6 +62,8 @@
void
pylith::meshio::MeshIOCubit::_read(void)
{ // _read
+ assert(_mesh);
+
int rank = 0;
int meshDim = 0;
int spaceDim = 0;
@@ -72,7 +74,7 @@
int_array cells;
int_array materialIds;
- MPI_Comm_rank(PETSC_COMM_WORLD, &rank);
+ MPI_Comm_rank(_mesh->comm(), &rank);
if (0 == rank) {
try {
NcFile ncfile(_filename.c_str());
More information about the CIG-COMMITS
mailing list