Package: libmesh
Version: 0.6.1.dfsg-3
Severity: wishlist
Tags: patch

Greetings,

The attached patch adds mesh partitioning support to libmesh in parallel
runs using the scotch metis compatibility layer.  It still needs two
things to be complete:
      * libmesh0.6.1-dev needs to depend on libscotch-dev
      * README.Debian needs to add -lscotchmetis -lscotch -lscotcherr to
        the list of libraries needed to compile an example code
(Sorry I haven't added these to the patch, but I've been sitting on it
for more than a week and just want to get it in.)

Thanks,
-Adam
-- 
GPG fingerprint: D54D 1AEE B11C CE9B A02B  C5DD 526F 01E8 564E E4B6

Engineering consulting with open source tools
http://www.opennovation.com/
--- libmesh-0.6.1.dfsg/aclocal.m4~	2007-10-15 20:48:46.000000000 +0000
+++ libmesh-0.6.1.dfsg/aclocal.m4	2008-02-29 14:11:49.000000000 +0000
@@ -1003,9 +1003,9 @@
 dnl -------------------------------------------------------------
 AC_DEFUN(CONFIGURE_METIS, 
 [
-  AC_CHECK_FILE(./contrib/metis/Lib/metis.h,
+  AC_CHECK_FILE(/usr/include/metis/metis.h,
 	        [ 
-	          METIS_INCLUDE_PATH=$PWD/contrib/metis/Lib
+	          METIS_INCLUDE_PATH=/usr/include/metis
                   METIS_INCLUDE=-I$METIS_INCLUDE_PATH
                   METIS_LIB="\$(EXTERNAL_LIBDIR)/libmetis\$(libext)"
 		  AC_SUBST(METIS_INCLUDE)
--- libmesh-0.6.1.dfsg/configure~	2007-10-15 20:48:46.000000000 +0000
+++ libmesh-0.6.1.dfsg/configure	2008-02-29 14:13:37.000000000 +0000
@@ -11450,26 +11450,26 @@
 
 if (test "$enablemetis" != no) ; then
 
-  echo "$as_me:$LINENO: checking for ./contrib/metis/Lib/metis.h" >&5
-echo $ECHO_N "checking for ./contrib/metis/Lib/metis.h... $ECHO_C" >&6
-if test "${ac_cv_file___contrib_metis_Lib_metis_h+set}" = set; then
+  echo "$as_me:$LINENO: checking for /usr/include/metis/metis.h" >&5
+echo $ECHO_N "checking for /usr/include/metis/metis.h... $ECHO_C" >&6
+if test "${ac_cv_file__usr_include_metis_metis_h+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   test "$cross_compiling" = yes &&
   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    { (exit 1); exit 1; }; }
-if test -r "./contrib/metis/Lib/metis.h"; then
-  ac_cv_file___contrib_metis_Lib_metis_h=yes
+if test -r "/usr/include/metis/metis.h"; then
+  ac_cv_file__usr_include_metis_metis_h=yes
 else
-  ac_cv_file___contrib_metis_Lib_metis_h=no
+  ac_cv_file__usr_include_metis_metis_h=no
 fi
 fi
-echo "$as_me:$LINENO: result: $ac_cv_file___contrib_metis_Lib_metis_h" >&5
-echo "${ECHO_T}$ac_cv_file___contrib_metis_Lib_metis_h" >&6
-if test $ac_cv_file___contrib_metis_Lib_metis_h = yes; then
+echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_metis_metis_h" >&5
+echo "${ECHO_T}$ac_cv_file__usr_include_metis_metis_h" >&6
+if test $ac_cv_file__usr_include_metis_metis_h = yes; then
 
-	          METIS_INCLUDE_PATH=$PWD/contrib/metis/Lib
+	          METIS_INCLUDE_PATH=/usr/include/metis
                   METIS_INCLUDE=-I$METIS_INCLUDE_PATH
                   METIS_LIB="\$(EXTERNAL_LIBDIR)/libmetis\$(libext)"
 
--- libmesh-0.6.1.dfsg/debian/rules~	2008-02-29 14:14:59.000000000 +0000
+++ libmesh-0.6.1.dfsg/debian/rules	2008-02-29 14:15:08.000000000 +0000
@@ -19,7 +19,7 @@
 	cp /usr/share/misc/config.guess .
 	cp /usr/share/misc/config.sub .
 	QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2
-	PETSC_DIR=/usr/lib/petsc PETSC_ARCH=linux-gnu-c-opt LDFLAGS=-Wl,-soname,libmesh.so.$(LIBMESH_VERSION),-lpetsc,-lpetscdm,-lpetscksp,-lpetscmat,-lpetscsnes,-lpetscts,-lpetscvec ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --disable-laspack --disable-slepc --disable-sfc --disable-gzstreams --disable-tecplot --disable-metis --disable-parmetis --disable-tetgen --disable-triangle --with-mpi=/usr --with-cxx=mpicxx --with-cc=mpicc --with-f77=mpif77 --disable-gmv
+	PETSC_DIR=/usr/lib/petsc PETSC_ARCH=linux-gnu-c-opt LDFLAGS=-Wl,-soname,libmesh.so.$(LIBMESH_VERSION),-lpetsc,-lpetscdm,-lpetscksp,-lpetscmat,-lpetscsnes,-lpetscts,-lpetscvec ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --disable-laspack --disable-slepc --disable-sfc --disable-gzstreams --disable-tecplot --enable-metis --disable-parmetis --disable-tetgen --disable-triangle --with-mpi=/usr --with-cxx=mpicxx --with-cc=mpicc --with-f77=mpif77 --disable-gmv
 
 build: build-stamp
 build-stamp:  config.status
--- libmesh-0.6.1.dfsg/debian/control~	2008-02-29 14:15:50.000000000 +0000
+++ libmesh-0.6.1.dfsg/debian/control	2008-02-29 14:16:01.000000000 +0000
@@ -3,7 +3,7 @@
 Maintainer: Debian Scientific Computing Team <[EMAIL PROTECTED]>
 Uploaders: Christophe Prud'homme <[EMAIL PROTECTED]>, Ondrej Certik <[EMAIL PROTECTED]>, Alan Woodland <[EMAIL PROTECTED]>
 XS-DM-Upload-Allowed: yes
-Build-Depends: debhelper (>= 5), autotools-dev (>= 20070306.1), libpetsc2.3.3-dev (>= 2.3.3-3), quilt (>= 0.46-4)
+Build-Depends: debhelper (>= 5), autotools-dev (>= 20070306.1), libpetsc2.3.3-dev (>= 2.3.3-3), quilt (>= 0.46-4), libscotchmetis-dev
 Standards-Version: 3.7.3
 Section: libs
 Homepage: http://libmesh.sourceforge.net/

Reply via email to