Repository navigation
Expand file tree
/
Copy pathrun_example.cmd
More file actions
60 lines (53 loc) · 2.81 KB
/
Copy pathrun_example.cmd
File metadata and controls
60 lines (53 loc) · 2.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
@echo off
setlocal
CALL .\bin\env.cmd
SET EXAMPLES_PK_ROOT=%LIB_PK_ROOT%.examples
if "%~1"=="" (
echo Usage: run_example ^<number^>
echo.
echo 1 %EXAMPLES_PK_ROOT%.exa1.Example1Algebraic
echo ^(Brusselator 3-cell - algebraic continuation ^(CONTA^)^)
echo 2 %EXAMPLES_PK_ROOT%.exa1m2.Example1m2BranchSwitch
echo ^(Brusselator 3-cell - branch switching via LOCATE and SWITA^)
echo 3 %EXAMPLES_PK_ROOT%.exa3.Example3LorenzHopf
echo ^(Lorenz system - Hopf bifurcation location ^(HOPFA^)^)
echo 4 %EXAMPLES_PK_ROOT%.exd1.Example1Periodic
echo ^(Brusselator 2-cell - periodic orbit continuation ^(CONTD^)^)
echo 5 %EXAMPLES_PK_ROOT%.exd2.Example2Cstr
echo ^(CSTR - periodic orbit continuation ^(CONTD^)^)
echo 6 %EXAMPLES_PK_ROOT%.exb1f.Example1fCatalyst
echo ^(Catalyst BVP - automatic continuation loop ^(CONTB^)^)
echo 7 %EXAMPLES_PK_ROOT%.exb1m.Example1mCatalyst
echo ^(Catalyst BVP - manual continuation loop^)
echo 8 %EXAMPLES_PK_ROOT%.exb2f.Example2fSuperconductivity
echo ^(Superconductivity BVP - automatic loop ^(CONTB^)^)
echo 9 %EXAMPLES_PK_ROOT%.exb2m.Example2mSuperconductivity
echo ^(Superconductivity BVP - manual loop with SWITB^)
echo 10 %EXAMPLES_PK_ROOT%.exb2am.Example2amSuperconductivityShooting
echo ^(Superconductivity BVP - multiple shooting ^(ODEBC1 direct^)^)
echo 11 %EXAMPLES_PK_ROOT%.exb4.Example4Brusselator
echo ^(Brusselator BVP - primary bifurcation scan ^(PBP^)^)
echo 12 %EXAMPLES_PK_ROOT%.exb13.Example13Olmstead
echo ^(Olmstead BVP - continuation and bifurcation scan^)
exit /b 1
)
if "%~1"=="1" set MAIN_CLASS=%EXAMPLES_PK_ROOT%.exa1.Example1Algebraic
if "%~1"=="2" set MAIN_CLASS=%EXAMPLES_PK_ROOT%.exa1m2.Example1m2BranchSwitch
if "%~1"=="3" set MAIN_CLASS=%EXAMPLES_PK_ROOT%.exa3.Example3LorenzHopf
if "%~1"=="4" set MAIN_CLASS=%EXAMPLES_PK_ROOT%.exd1.Example1Periodic
if "%~1"=="5" set MAIN_CLASS=%EXAMPLES_PK_ROOT%.exd2.Example2Cstr
if "%~1"=="6" set MAIN_CLASS=%EXAMPLES_PK_ROOT%.exb1f.Example1fCatalyst
if "%~1"=="7" set MAIN_CLASS=%EXAMPLES_PK_ROOT%.exb1m.Example1mCatalyst
if "%~1"=="8" set MAIN_CLASS=%EXAMPLES_PK_ROOT%.exb2f.Example2fSuperconductivity
if "%~1"=="9" set MAIN_CLASS=%EXAMPLES_PK_ROOT%.exb2m.Example2mSuperconductivity
if "%~1"=="10" set MAIN_CLASS=%EXAMPLES_PK_ROOT%.exb2am.Example2amSuperconductivityShooting
if "%~1"=="11" set MAIN_CLASS=%EXAMPLES_PK_ROOT%.exb4.Example4Brusselator
if "%~1"=="12" set MAIN_CLASS=%EXAMPLES_PK_ROOT%.exb13.Example13Olmstead
if "%MAIN_CLASS%"=="" (
echo Error: unknown example number "%~1". Valid range is 1-12.
exit /b 1
)
echo Running example %~1: %MAIN_CLASS%
echo.
mvn -e -q compile exec:java -Dexec.mainClass=%MAIN_CLASS%
endlocal