11@ echo off
22set LIB_TAG = v6.7.0
3+
4+ :: *** library and tag name are the same
5+
36set LIB_DIR = %LIB_TAG%
47
8+ :: *** placehoder for parsing options
9+
510call :getopts %*
611if %stopscript% == 1 exit /b
712
@@ -52,22 +57,27 @@ if exist %LIB_REPO% goto endif3
5257
5358cd %LIB_REPO%
5459
60+ set buildstatus = build
5561echo .
5662echo ----------------------------------------------------------
5763echo ----------------------------------------------------------
5864echo building Sundials library version %LIB_TAG%
5965echo ----------------------------------------------------------
6066echo ----------------------------------------------------------
67+ echo .
68+
6169echo .
6270echo ----------------------------------------------------------
6371echo ----------------------------------------------------------
64- echo checking out version %LIB_TAG%
72+ echo setting up Intel compilers
6573echo ----------------------------------------------------------
6674echo ----------------------------------------------------------
6775echo .
76+ call %FIREMODELS% \fds\Build\Scripts\setup_intel_compilers.bat
6877
69- git checkout %LIB_TAG%
78+ git checkout %LIB_TAG%
7079
80+ echo .
7181echo ----------------------------------------------------------
7282echo ----------------------------------------------------------
7383echo cleaning sundials repo
@@ -82,7 +92,9 @@ git clean -dxf
8292mkdir %BUILDDIR%
8393cd %BUILDDIR%
8494
85- :: configure sundials
95+ :: *** configure sundials
96+
97+ echo .
8698echo ----------------------------------------------------------
8799echo ----------------------------------------------------------
88100echo configuring sundials version %SUNDIALSTAG%
@@ -106,7 +118,9 @@ cmake ..\ ^
106118-DCMAKE_C_FLAGS_RELEASE=" ${CMAKE_C_FLAGS_RELEASE} /MT" ^
107119-DCMAKE_C_FLAGS_DEBUG=" ${CMAKE_C_FLAGS_DEBUG} /MTd"
108120
109- :: build and install sundials
121+ :: *** build and install sundials
122+
123+ echo .
110124echo ----------------------------------------------------------
111125echo ----------------------------------------------------------
112126echo building sundials version %LIB_TAG%
@@ -115,6 +129,7 @@ echo ----------------------------------------------------------
115129echo .
116130call make
117131
132+ echo .
118133echo ----------------------------------------------------------
119134echo ----------------------------------------------------------
120135echo installing sundials version %LIB_TAG% in %INSTALLDIR%
@@ -123,16 +138,13 @@ echo ----------------------------------------------------------
123138echo .
124139call make install
125140
141+ echo .
126142echo ----------------------------------------------------------
127143echo ----------------------------------------------------------
128144echo setting SUNDIALS_HOME environment variable to %INSTALLDIR%
129145set SUNDIALS_HOME = %INSTALLDIR%
130- echo ----------------------------------------------------------
131- echo ----------------------------------------------------------
132146echo .
133147
134- echo ----------------------------------------------------------
135- echo ----------------------------------------------------------
136148echo sundials version %LIB_TAG% installed in %INSTALLDIR%
137149echo ----------------------------------------------------------
138150echo ----------------------------------------------------------
0 commit comments