Skip to content
Merged
Show file tree
Hide file tree
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
23 changes: 14 additions & 9 deletions Build/Scripts/HYPRE/build_hypre.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off
set INSTALLDIR=hypre-2.31.0
set HYPREVERSION=v2.31.0
set HYPREVERSION=2.31.0
set HYPRETAG=v2.31.0

call :getopts %*
if %stopscript% == 1 exit /b
Expand All @@ -22,11 +22,16 @@ cd %CURDIR%

set LIBS=%FIREMODELS%\libs
if not exist %LIBS% mkdir %LIBS%
if not exist %LIBS% echo failed to create LIBS directory
if not exist %LIBS% echo failed to create %LIBS% directory
if not exist %LIBS% exit

cd %LIBS%
set LIBS=%CD%
set INSTALLDIR=%LIBS%\%INSTALLDIR%
if not exist %LIBS%\hypre mkdir %LIBS%\hypre
if not exist %LIBS%\hypre echo failed to create %LIBS%\hypre directory
if not exist %LIBS%\hypre exit

set INSTALLDIR=%LIBS%\hypre\%HYPREVERSION%
cd %CURDIR%

echo ----------------------------------------------------------
Expand Down Expand Up @@ -55,11 +60,11 @@ echo.
cd hypre
echo ----------------------------------------------------------
echo ----------------------------------------------------------
echo checking out version %HYPREVERSION%
echo checking out tag %HYPRETAG%
echo ----------------------------------------------------------
echo ----------------------------------------------------------
echo.
git checkout %HYPREVERSION%
git checkout %HYPRETAG%

echo ----------------------------------------------------------
echo ----------------------------------------------------------
Expand Down Expand Up @@ -89,7 +94,7 @@ git clean -dxf
:: configure hypre
echo ----------------------------------------------------------
echo ----------------------------------------------------------
echo configuring hypre version %HYPREVERSION%
echo configuring hypre version %HYPRETAG%
echo ----------------------------------------------------------
echo ----------------------------------------------------------
echo.
Expand All @@ -106,7 +111,7 @@ cmake ..\ ^
:: build and install hypre
echo ----------------------------------------------------------
echo ----------------------------------------------------------
echo building and installing hypre version %HYPREVERSION%
echo building and installing hypre version %HYPRETAG%
echo ----------------------------------------------------------
echo ----------------------------------------------------------
echo.
Expand All @@ -133,7 +138,7 @@ echo.

echo ----------------------------------------------------------
echo ----------------------------------------------------------
echo hypre version %HYPREVERSION% installed in %INSTALLDIR%
echo hypre version %HYPRETAG% installed in %INSTALLDIR%
echo ----------------------------------------------------------
echo ----------------------------------------------------------
echo.
Expand Down
Empty file removed Build/Scripts/SUNDIALS/.gitignore
Empty file.
24 changes: 14 additions & 10 deletions Build/Scripts/SUNDIALS/build_sundials.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off
set INSTALLDIR=sundials-6.7.0
set SUNDIALSVERSION=v6.7.0
set SUNDIALSVERSION=6.7.0
set SUNDIALSTAG=v6.7.0

call :getopts %*
if %stopscript% == 1 exit /b
Expand Down Expand Up @@ -31,11 +31,15 @@ cd %CURDIR%

set LIBS=%FIREMODELS%\libs
if not exist %LIBS% mkdir %LIBS%
if not exist %LIBS% echo failed to create LIBS directory
if not exist %LIBS% echo failed to create %LIBS% directory
if not exist %LIBS% exit

cd %LIBS%
if not exist %LIBS%\sundials mkdir %LIBS%\sundials
if not exist %LIBS%\sundials echo failed to create %LIBS%\sundials directory
if not exist %LIBS%\sundials exit
set LIBS=%CD%
set INSTALLDIR=%LIBS%\%INSTALLDIR%
set INSTALLDIR=%LIBS%\sundials\%SUNDIALSVERSION%
cd %CURDIR%


Expand All @@ -55,11 +59,11 @@ echo.
cd sundials
echo ----------------------------------------------------------
echo ----------------------------------------------------------
echo checking out version %SUNDIALSVERSION%
echo checking out version %SUNDIALSTAG%
echo ----------------------------------------------------------
echo ----------------------------------------------------------
echo.
git checkout %SUNDIALSVERSION%
git checkout %SUNDIALSTAG%
cd %CURDIR%
:endif1

Expand All @@ -81,7 +85,7 @@ cd %BUILDDIR%
:: configure sundials
echo ----------------------------------------------------------
echo ----------------------------------------------------------
echo configuring sundials version %SUNDIALSVERSION%
echo configuring sundials version %SUNDIALSTAG%
echo ----------------------------------------------------------
echo ----------------------------------------------------------
echo.
Expand All @@ -104,15 +108,15 @@ cmake ..\ ^
:: build and install sundials
echo ----------------------------------------------------------
echo ----------------------------------------------------------
echo building sundials version %SUNDIALSVERSION%
echo building sundials version %SUNDIALSTAG%
echo ----------------------------------------------------------
echo ----------------------------------------------------------
echo.
call make

echo ----------------------------------------------------------
echo ----------------------------------------------------------
echo installing sundials version %SUNDIALSVERSION% in %INSTALLDIR%
echo installing sundials version %SUNDIALSTAG% in %INSTALLDIR%
echo ----------------------------------------------------------
echo ----------------------------------------------------------
echo.
Expand All @@ -139,7 +143,7 @@ echo.

echo ----------------------------------------------------------
echo ----------------------------------------------------------
echo sundials version %SUNDIALSVERSION% installed in %INSTALLDIR%
echo sundials version %SUNDIALSTAG% installed in %INSTALLDIR%
echo ----------------------------------------------------------
echo ----------------------------------------------------------
echo.
Expand Down