Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion Build/Scripts/SUNDIALS/build_sundials.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ echo "Checking for sundials repository..."

if [ -d "$FIREMODELS/sundials" ]; then
echo "Sundials repository exists. Building sundials library."
echo "Checking out version 6.7.0"
cd $FIREMODELS/sundials
$(git checkout v6.7.0)

mkdir $FIREMODELS/sundials/BUILDDIR
cd $FIREMODELS/sundials/BUILDDIR

Expand All @@ -38,10 +42,14 @@ if [ -d "$FIREMODELS/sundials" ]; then
mkdir $FIREMODELS/libs/sundials/$SUNDIALS_VERSION

echo "Cleaning sundials repository..."
rm -r *
rm -r $FIREMODELS/sundials/BUILDDIR/*
cp $FIREMODELS/fds/Build/Scripts/SUNDIALS/$CONFMAKE .
./$CONFMAKE

# get back from detached HEAD state
cd $FIREMODELS/sundials
$(git checkout main)

cd $dir
export SUNDIALS_HOME=$FIREMODELS/libs/sundials/$SUNDIALS_VERSION
echo "Sundials library:" $FIREMODELS/libs/sundials/$SUNDIALS_VERSION
Expand Down