forked from ReactionMechanismGenerator/RMG-Java
-
Notifications
You must be signed in to change notification settings - Fork 1
/
make.bat
62 lines (47 loc) · 1.78 KB
/
make.bat
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
61
62
@echo off
if not defined RMG (
echo Error: RMG variable not defined; please set to the location of your RMG installation.
goto end
)
mkdir "%rmg%"\bin
echo Compiling GATPFit...
cd "%rmg%"\source\GATPFit
g95 -Wall -fbounds-check *.f -L"%rmg%"\bin -lblas -llapack -o "%rmg%"\bin\GATPFit.exe
IF EXIST "%RMG%"\bin\GATPFit.exe (
echo GATPFit.exe created succesfully.
) ELSE (
echo Compilation failed. Make sure blas.dll and lapack.dll are in %RMG%\bin folder. You can download from https://github.com/GreenGroup/RMG-Java/downloads
GOTO end
)
echo Compiling fame...
cd "%rmg%"\source\fame
g95 -Wall -fbounds-check -O3 math.f90 states.f90 specfun.f90 _modes.f90 network.f90 io.f90 mastereqn.f90 msc.f90 rs.f90 model.f90 fame.f90 -L"%rmg%"\bin -lblas -llapack -o "%rmg%"\bin\fame.exe
IF EXIST "%RMG%"\bin\fame.exe (
echo GATPFit.exe created succesfully.
) ELSE (
echo Compilation failed. Check g95 output.
GOTO end
)
echo Compiling frankie...
cd "%rmg%"\source\frankie
g95 -Wall -fbounds-check *.f90 -o "%rmg%"\bin\frankie.exe
IF EXIST "%RMG%"\bin\frankie.exe (
echo GATPFit.exe created succesfully.
) ELSE (
echo Compilation failed. Check g95 output.
GOTO end
)
echo Compiling dassl...
cd "%rmg%"\source\dassl
g95 call_dasslAUTO.f90 daux.f ddassl.f dlinpk.f getflux.f reaction_flux.f res.f res_daepack.f -o "%rmg%"\bin\dasslAUTO.exe
IF EXIST "%RMG%"\bin\dasslAUTO.exe (
echo GATPFit.exe created succesfully.
) ELSE (
echo Compilation failed. Check g95 output.
GOTO end
)
echo Compiled Fortran code succesfully. You should have GATPFit, fame, frankie, dasslAUTO executables in "%RMG%"\bin folder.
echo This script does NOT compile the Java code; use the command "ant jar" to do so.
cd "%rmg%"
:end
pause