[cig-commits] r17958 - in short/3D/PyLith/branches/v1.5-stable: . libsrc/meshio

brad at geodynamics.org brad at geodynamics.org
Wed Feb 23 13:06:29 PST 2011


Author: brad
Date: 2011-02-23 13:06:29 -0800 (Wed, 23 Feb 2011)
New Revision: 17958

Modified:
   short/3D/PyLith/branches/v1.5-stable/configure.ac
   short/3D/PyLith/branches/v1.5-stable/libsrc/meshio/MeshIOCubit.cc
Log:
Added check for FIAT. Eliminated variable that was used once.

Modified: short/3D/PyLith/branches/v1.5-stable/configure.ac
===================================================================
--- short/3D/PyLith/branches/v1.5-stable/configure.ac	2011-02-23 20:25:20 UTC (rev 17957)
+++ short/3D/PyLith/branches/v1.5-stable/configure.ac	2011-02-23 21:06:29 UTC (rev 17958)
@@ -127,6 +127,9 @@
 CIT_NUMPY_PYTHON_MODULE
 CIT_NUMPY_INCDIR
 
+# FIAT
+CIT_PYTHON_MODULE([FIAT])
+
 # SWIG
 if test "$enable_swig" = "yes" ; then
   AC_PROG_SWIG(1.3.33)

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 20:25:20 UTC (rev 17957)
+++ short/3D/PyLith/branches/v1.5-stable/libsrc/meshio/MeshIOCubit.cc	2011-02-23 21:06:29 UTC (rev 17958)
@@ -62,7 +62,6 @@
 void
 pylith::meshio::MeshIOCubit::_read(void)
 { // _read
-  MPI_Comm comm = PETSC_COMM_WORLD;
   int rank = 0;
   int meshDim = 0;
   int spaceDim = 0;
@@ -73,7 +72,7 @@
   int_array cells;
   int_array materialIds;
 
-  MPI_Comm_rank(comm, &rank);
+  MPI_Comm_rank(PETSC_COMM_WORLD, &rank);
   if (0 == rank) {
     try {
       NcFile ncfile(_filename.c_str());



More information about the CIG-COMMITS mailing list