]> https://gitweb.dealii.org/ - candi.git/commitdiff
deal.II: ParMETIS, SuperLU_Dist + Trilinos: fixes some small errors.
authorUwe Köcher <koecher@hsu-hamburg.de>
Thu, 29 Oct 2015 10:40:29 +0000 (11:40 +0100)
committerUwe Köcher <koecher@hsu-hamburg.de>
Thu, 29 Oct 2015 10:40:29 +0000 (11:40 +0100)
deal.II/packages/dealii-prepare.package
deal.II/packages/trilinos.package

index 8af6ce67f4d72c810066822ba0a14d42d40f7332..7a640832bfb82702e2565c19eb84a5a90d614e8b 100644 (file)
@@ -5,24 +5,27 @@ BUILDCHAIN=ignore
 ### DO NOT MODIFY THE CODE BELOW ###
 ####################################
 
+ParMETIS=ON
+SuperLUDist=ON
+
 #########################################################################
 # Loop over the options in DEAL_CONFOPTS and if the package is turned off, add
 # it to the PACKAGES_OFF list.
 for PACKAGE in ${DEAL_CONFOPTS[@]}; do
-  case ${PACKAGE} in
-      *DEAL_II_WITH*:BOOL=OFF)
-      PACKAGE_NAME=${PACKAGE##*WITH_};
-      PACKAGE_NAME=${PACKAGE_NAME%%:BOOL*};
-      PACKAGES_OFF=${PACKAGE_NAME}' '${PACKAGES_OFF};;
-  esac
+    case ${PACKAGE} in
+        *DEAL_II_WITH*:BOOL=OFF)
+        PACKAGE_NAME=${PACKAGE##*WITH_};
+        PACKAGE_NAME=${PACKAGE_NAME%%:BOOL*};
+        PACKAGES_OFF=${PACKAGE_NAME}' '${PACKAGES_OFF};;
+    esac
 done
 
 # Turn off ParMETIS and SuperLU_dist if metis is off.
 if [[ ${PACKAGES_OFF} =~ 'METIS' ]]; then
-  PACKAGES_OFF=${PACKAGES_OFF}' PARMETIS';
-  PACKAGES_OFF=${PACKAGES_OFF}' SUPERLU_DIST';
-  ParMetis=OFF
-  SuperLUDist=OFF
+    PACKAGES_OFF=${PACKAGES_OFF}' PARMETIS';
+    PACKAGES_OFF=${PACKAGES_OFF}' SUPERLU_DIST';
+    ParMETIS=OFF
+    SuperLUDist=OFF
 fi
 
 # Transform upper case to lower case.
index 2e8ac0d97f65973f745ca39438b0659d8276cc9f..2cae467f6d233c9fac5c3d165f5fdfffa387fbfe 100644 (file)
@@ -78,6 +78,24 @@ CONFOPTS="${CONFOPTS} \
           -D CMAKE_FORTRAN_FLAGS:STRING=-g -O5 \
           -D Trilinos_EXTRA_LINK_FLAGS:STRING=-lgfortran"
 
+# Add ParMETIS, if present
+if [ ! -z "${ParMETIS}" ] && [ ${ParMETIS} = "ON" ]; then
+    CONFOPTS="\
+        ${CONFOPTS} \
+        -D TPL_ENABLE_ParMETIS:BOOL=${ParMETIS} \
+        -D TPL_ParMETIS_LIBRARIES:FILEPATH=${INSTALL_PATH}/lib/libparmetis.so"
+fi
+
+# Add SuperLU_dist, if present
+if [ ! -z "${SuperLUDist}" ] && [ ${SuperLUDist} = "ON" ]; then
+    CONFOPTS="\
+        ${CONFOPTS} \
+          -D TPL_ENABLE_SuperLUDist:BOOL=${SuperLUDist} \
+          -D TPL_SuperLUDist_LIBRARIES:FILEPATH=${INSTALL_PATH}/lib/libsuperlu_dist.so \
+          -D SuperLUDist_INCLUDE_DIRS:PATH=${INSTALL_PATH}/include/superlu \
+          -D HAVE_SUPERLUDIST_LUSTRUCTINIT_2ARG:BOOL=ON"
+fi
+
 #########################################################################
 # General Trilinos configuration
 
@@ -92,12 +110,6 @@ CONFOPTS="${TRILINOS_CONFOPTS} \
           -D Trilinos_ENABLE_Belos:BOOL=ON \
           -D Trilinos_ENABLE_MueLu:BOOL=ON \
           -D Trilinos_ENABLE_Amesos2:BOOL=ON \
-          -D TPL_ENABLE_ParMETIS:BOOL=${ParMETIS} \
-          -D TPL_ParMETIS_LIBRARIES:FILEPATH=${INSTALL_PATH}/lib/libparmetis.so \
-          -D TPL_ENABLE_SuperLUDist:BOOL=${SuperLUDist} \
-          -D TPL_SuperLUDist_LIBRARIES:FILEPATH=${INSTALL_PATH}/lib/libsuperlu_dist.so \
-          -D SuperLUDist_INCLUDE_DIRS:PATH=${INSTALL_PATH}/include/superlu \
-          -D HAVE_SUPERLUDIST_LUSTRUCTINIT_2ARG:BOOL=ON \
           -D CMAKE_BUILD_TYPE:STRING=RELEASE \
           -D CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE \
           -D Trilinos_VERBOSE_CONFIGURE:BOOL=FALSE \

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.