Skip to content

Commit fe97f2c

Browse files
authored
Merge pull request #13628 from gforney/master
scripts: change destinaation directory of windows sundials and hypre …
2 parents 0689aba + 2ee5fa7 commit fe97f2c

File tree

3 files changed

+28
-19
lines changed

3 files changed

+28
-19
lines changed

Build/Scripts/HYPRE/build_hypre.bat

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@echo off
2-
set INSTALLDIR=hypre-2.31.0
3-
set HYPREVERSION=v2.31.0
2+
set HYPREVERSION=2.31.0
3+
set HYPRETAG=v2.31.0
44

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

2323
set LIBS=%FIREMODELS%\libs
2424
if not exist %LIBS% mkdir %LIBS%
25-
if not exist %LIBS% echo failed to create LIBS directory
25+
if not exist %LIBS% echo failed to create %LIBS% directory
2626
if not exist %LIBS% exit
27+
2728
cd %LIBS%
2829
set LIBS=%CD%
29-
set INSTALLDIR=%LIBS%\%INSTALLDIR%
30+
if not exist %LIBS%\hypre mkdir %LIBS%\hypre
31+
if not exist %LIBS%\hypre echo failed to create %LIBS%\hypre directory
32+
if not exist %LIBS%\hypre exit
33+
34+
set INSTALLDIR=%LIBS%\hypre\%HYPREVERSION%
3035
cd %CURDIR%
3136

3237
echo ----------------------------------------------------------
@@ -55,11 +60,11 @@ echo.
5560
cd hypre
5661
echo ----------------------------------------------------------
5762
echo ----------------------------------------------------------
58-
echo checking out version %HYPREVERSION%
63+
echo checking out tag %HYPRETAG%
5964
echo ----------------------------------------------------------
6065
echo ----------------------------------------------------------
6166
echo.
62-
git checkout %HYPREVERSION%
67+
git checkout %HYPRETAG%
6368

6469
echo ----------------------------------------------------------
6570
echo ----------------------------------------------------------
@@ -89,7 +94,7 @@ git clean -dxf
8994
:: configure hypre
9095
echo ----------------------------------------------------------
9196
echo ----------------------------------------------------------
92-
echo configuring hypre version %HYPREVERSION%
97+
echo configuring hypre version %HYPRETAG%
9398
echo ----------------------------------------------------------
9499
echo ----------------------------------------------------------
95100
echo.
@@ -106,7 +111,7 @@ cmake ..\ ^
106111
:: build and install hypre
107112
echo ----------------------------------------------------------
108113
echo ----------------------------------------------------------
109-
echo building and installing hypre version %HYPREVERSION%
114+
echo building and installing hypre version %HYPRETAG%
110115
echo ----------------------------------------------------------
111116
echo ----------------------------------------------------------
112117
echo.
@@ -133,7 +138,7 @@ echo.
133138

134139
echo ----------------------------------------------------------
135140
echo ----------------------------------------------------------
136-
echo hypre version %HYPREVERSION% installed in %INSTALLDIR%
141+
echo hypre version %HYPRETAG% installed in %INSTALLDIR%
137142
echo ----------------------------------------------------------
138143
echo ----------------------------------------------------------
139144
echo.

Build/Scripts/SUNDIALS/.gitignore

Whitespace-only changes.

Build/Scripts/SUNDIALS/build_sundials.bat

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@echo off
2-
set INSTALLDIR=sundials-6.7.0
3-
set SUNDIALSVERSION=v6.7.0
2+
set SUNDIALSVERSION=6.7.0
3+
set SUNDIALSTAG=v6.7.0
44

55
call :getopts %*
66
if %stopscript% == 1 exit /b
@@ -31,11 +31,15 @@ cd %CURDIR%
3131

3232
set LIBS=%FIREMODELS%\libs
3333
if not exist %LIBS% mkdir %LIBS%
34-
if not exist %LIBS% echo failed to create LIBS directory
34+
if not exist %LIBS% echo failed to create %LIBS% directory
3535
if not exist %LIBS% exit
36+
3637
cd %LIBS%
38+
if not exist %LIBS%\sundials mkdir %LIBS%\sundials
39+
if not exist %LIBS%\sundials echo failed to create %LIBS%\sundials directory
40+
if not exist %LIBS%\sundials exit
3741
set LIBS=%CD%
38-
set INSTALLDIR=%LIBS%\%INSTALLDIR%
42+
set INSTALLDIR=%LIBS%\sundials\%SUNDIALSVERSION%
3943
cd %CURDIR%
4044

4145

@@ -55,11 +59,11 @@ echo.
5559
cd sundials
5660
echo ----------------------------------------------------------
5761
echo ----------------------------------------------------------
58-
echo checking out version %SUNDIALSVERSION%
62+
echo checking out version %SUNDIALSTAG%
5963
echo ----------------------------------------------------------
6064
echo ----------------------------------------------------------
6165
echo.
62-
git checkout %SUNDIALSVERSION%
66+
git checkout %SUNDIALSTAG%
6367
cd %CURDIR%
6468
:endif1
6569

@@ -81,7 +85,7 @@ cd %BUILDDIR%
8185
:: configure sundials
8286
echo ----------------------------------------------------------
8387
echo ----------------------------------------------------------
84-
echo configuring sundials version %SUNDIALSVERSION%
88+
echo configuring sundials version %SUNDIALSTAG%
8589
echo ----------------------------------------------------------
8690
echo ----------------------------------------------------------
8791
echo.
@@ -104,15 +108,15 @@ cmake ..\ ^
104108
:: build and install sundials
105109
echo ----------------------------------------------------------
106110
echo ----------------------------------------------------------
107-
echo building sundials version %SUNDIALSVERSION%
111+
echo building sundials version %SUNDIALSTAG%
108112
echo ----------------------------------------------------------
109113
echo ----------------------------------------------------------
110114
echo.
111115
call make
112116

113117
echo ----------------------------------------------------------
114118
echo ----------------------------------------------------------
115-
echo installing sundials version %SUNDIALSVERSION% in %INSTALLDIR%
119+
echo installing sundials version %SUNDIALSTAG% in %INSTALLDIR%
116120
echo ----------------------------------------------------------
117121
echo ----------------------------------------------------------
118122
echo.
@@ -139,7 +143,7 @@ echo.
139143

140144
echo ----------------------------------------------------------
141145
echo ----------------------------------------------------------
142-
echo sundials version %SUNDIALSVERSION% installed in %INSTALLDIR%
146+
echo sundials version %SUNDIALSTAG% installed in %INSTALLDIR%
143147
echo ----------------------------------------------------------
144148
echo ----------------------------------------------------------
145149
echo.

0 commit comments

Comments
 (0)