Skip to content

Commit 22ac3a9

Browse files
committed
FDS Build: Add Macos support
1 parent 4de0d2c commit 22ac3a9

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

Build/Scripts/HYPRE/confmake.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ cmake ../ \
1010
-DCMAKE_INSTALL_PREFIX=$HYPRE_INSTALL_PREFIX \
1111
-DCMAKE_C_COMPILER=$CC \
1212
-DCMAKE_C_FLAGS=$C_FLAGS \
13-
-DCMAKE_INSTALL_LIBDIR="lib"
13+
-DCMAKE_INSTALL_LIBDIR="lib"
14+
#-DCMAKE_OSX_DEPLOYMENT_TARGET="14.0"
15+
16+
# ./configure CC=$CC FC=mpiifort CFLAGS="-O3 -fno-unsafe-math-optimizations -fp-model=precise" FFLAGS="-O3 -fno-unsafe-math-optimizations -fp-model=precise" \
17+
# --prefix=$FIREMODELS/libs/hypre/$HYPRE_VERSION
1418

1519
make install

Build/Scripts/build_thirdparty_libs.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
# PARSE OPTIONS FOR CLEAN LIBRARY BUILDS ####################################
22

33
# Parse the long options first using getopt
4-
OPTIONS=$(getopt -o "" --long clean-hypre,clean-sundials -- "$@")
4+
#OPTIONS=$(getopt -o "" --long clean-hypre,clean-sundials -- "$@")
55

66
# Check if getopt parsed successfully
7-
if [ $? -ne 0 ]; then
8-
echo "Error parsing options."
9-
exit 1
10-
fi
7+
#if [ $? -ne 0 ]; then
8+
# echo "Error parsing options."
9+
# exit 1
10+
#fi
1111

1212
# Evaluate the parsed options
13-
eval set -- "$OPTIONS"
13+
#eval set -- "$OPTIONS"
1414

1515
# Initialize variables for options
1616
clean_hypre=false
1717
clean_sundials=false
1818
ARG=""
1919

2020
# Loop through the options
21-
while true; do
21+
while [[ $# -gt 0 ]]; do
2222
case "$1" in
2323
--clean-hypre)
2424
clean_hypre=true # Set the flag to true when --clean-hypre is used

0 commit comments

Comments
 (0)