Skip to content

Commit 7d93ae9

Browse files
committed
Add Metis back
1 parent 4893763 commit 7d93ae9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scripts/compile_solvers.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ fi
110110
SKIP_PKGS='ThirdParty/Lapack ThirdParty/Blas ThirdParty/Glpk ThirdParty/Metis ThirdParty/Mumps'
111111
bash coinbrew fetch Clp --no-prompt --skip "$SKIP_PKGS"
112112
bash coinbrew fetch Cbc --no-prompt --skip "$SKIP_PKGS"
113+
SKIP_PKGS='ThirdParty/Lapack ThirdParty/Blas ThirdParty/Glpk ThirdParty/Mumps'
113114
SKIP_PKGS="$SKIP_PKGS Cbc Clp Cgl Osi"
114115
bash coinbrew fetch Bonmin --no-prompt --skip "$SKIP_PKGS"
115116
bash coinbrew fetch Couenne --no-prompt --skip "$SKIP_PKGS"
@@ -173,6 +174,16 @@ make $PARALLEL
173174
make install
174175
cd $IDAES_EXT/coinbrew
175176

177+
echo "#########################################################################"
178+
echo "# Thirdparty/Metis #"
179+
echo "#########################################################################"
180+
cd ThirdParty/Metis
181+
./configure --disable-shared --enable-static --prefix=$IDAES_EXT/coinbrew/dist \
182+
--prefix=$IDAES_EXT/coinbrew/dist FFLAGS="-fPIC" CFLAGS="-fPIC" CXXFLAGS="-fPIC"
183+
make $PARALLEL
184+
make install
185+
cd $IDAES_EXT/coinbrew
186+
176187
echo "#########################################################################"
177188
echo "# Thirdparty/HSL #"
178189
echo "#########################################################################"

0 commit comments

Comments
 (0)