Skip to content

Commit 0689aba

Browse files
authored
Merge pull request #13627 from gforney/master
move windows sundials and hypre build scripts to directories under Build\Sscripts to be consistent with linux build script locations
2 parents 2719406 + 38fbd94 commit 0689aba

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed
Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ if %abort% == 1 exit /b
1515

1616
set CURDIR=%CD%
1717

18-
set LIBS=..\..\..\libs
18+
set FIREMODELS=..\..\..\..
19+
cd %FIREMODELS%
20+
set FIREMODELS=%CD%
21+
cd %CURDIR%
22+
23+
set LIBS=%FIREMODELS%\libs
1924
if not exist %LIBS% mkdir %LIBS%
2025
if not exist %LIBS% echo failed to create LIBS directory
2126
if not exist %LIBS% exit
@@ -30,11 +35,11 @@ echo setting up Intel compilers
3035
echo ----------------------------------------------------------
3136
echo ----------------------------------------------------------
3237
echo.
33-
call ..\..\Build\Scripts\setup_intel_compilers.bat
38+
call %FIREMODELS%\fds\Build\Scripts\setup_intel_compilers.bat
3439

3540
cd %CURDIR%
3641

37-
set HYPRE=..\..\..\hypre
42+
set HYPRE=%FIREMODELS%\hypre
3843

3944
:: clone hypre repo (at same level as fds, smv etc repos) if it doesn't exist
4045
if exist %HYPRE% goto endif1
@@ -45,7 +50,7 @@ echo ----------------------------------------------------------
4550
echo ----------------------------------------------------------
4651
echo.
4752

48-
cd ..\..\..
53+
cd %FIREMODELS%
4954
git clone https://github.com/hypre-space/hypre.git
5055
cd hypre
5156
echo ----------------------------------------------------------
@@ -64,7 +69,7 @@ echo ----------------------------------------------------------
6469
echo.
6570
echo change HYPRE_FMANGLE line to #define HYPRE_FMANGLE 4
6671
echo after saving file, press enter
67-
notepad %CURDIR%\%HYPRE%\src\config\HYPRE_config.h.cmake.in
72+
notepad %HYPRE%\src\config\HYPRE_config.h.cmake.in
6873

6974
pause
7075
cd %CURDIR%
@@ -77,7 +82,7 @@ echo ----------------------------------------------------------
7782
echo ----------------------------------------------------------
7883
echo.
7984

80-
cd %CURDIR%\%HYPRE%
85+
cd %HYPRE%
8186
set HYPRE=%CD%
8287
git clean -dxf
8388

Build/Scripts/SUNDIALS/.gitignore

Whitespace-only changes.
Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,22 @@ call :is_file_installed gcc || set abort=1
1414
if %abort% == 1 exit /b
1515

1616
set CURDIR=%CD%
17+
set FIREMODELS=..\..\..\..
18+
cd %FIREMODELS%
19+
set FIREMODELS=%CD%
20+
cd %CURDIR%
1721

1822
echo ----------------------------------------------------------
1923
echo ----------------------------------------------------------
2024
echo setting up Intel compilers
2125
echo ----------------------------------------------------------
2226
echo ----------------------------------------------------------
2327
echo.
24-
call ..\..\Build\Scripts\setup_intel_compilers.bat
28+
call %FIREMODELS%\fds\Build\Scripts\setup_intel_compilers.bat
2529

2630
cd %CURDIR%
2731

28-
set LIBS=..\..\..\libs
32+
set LIBS=%FIREMODELS%\libs
2933
if not exist %LIBS% mkdir %LIBS%
3034
if not exist %LIBS% echo failed to create LIBS directory
3135
if not exist %LIBS% exit
@@ -35,7 +39,7 @@ set INSTALLDIR=%LIBS%\%INSTALLDIR%
3539
cd %CURDIR%
3640

3741

38-
set SUNDIALS=..\..\..\sundials
42+
set SUNDIALS=%FIREMODELS%\sundials
3943

4044
:: clone sundials repo (at same level as fds, smv etc repos) if it doesn't exist
4145
if exist %SUNDIALS% goto endif1
@@ -46,7 +50,7 @@ echo ----------------------------------------------------------
4650
echo ----------------------------------------------------------
4751
echo.
4852

49-
cd ..\..\..
53+
cd %FIREMODELS%
5054
git clone https://github.com/LLNL/sundials.git
5155
cd sundials
5256
echo ----------------------------------------------------------

0 commit comments

Comments
 (0)