forked from sundmanbo/opencalphad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
linkpara
83 lines (66 loc) · 2.27 KB
/
linkpara
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
REM This file must be given the extension .cmd to be run on Windows
REM It compiles OC with openMP amd the popup window for opening files.
REM If you do not want that or have problems try to command file
REM linkmake-tinyfd
REM *******************************************
REM ** OC graphics require GNUPLOT 5.0 or later
REM *******************************************
del *.o
del *.mod
REM tinyfiledialog files and interface
copy utilities\TINYFILEDIALOGS\tinyopen.c .
copy utilities\TINYFILEDIALOGS\tinyfiledialogs.c .
copy utilities\TINYFILEDIALOGS\tinyfiledialogs.h .
copy utilities\TINYFILEDIALOGS\ftinyopen.F90 .
gcc -c tinyopen.c
gcc -c tinyfiledialogs.c
gfortran -c ftinyopen.F90
del tinyopen.c
del tinyfiledialogs.c
del tinyfiledialogs.h
del ftinyopen.F90
REM some utilites and the command line interface
copy utilities\metlib3.F90 .
gfortran -c -O2 -Dtinyfd metlib3.F90
del metlib3.F90
REM some routines from LAPACK and BLAS
copy numlib\oclablas.F90 .
gfortran -c -fopenmp -O2 oclablas.F90
del oclablas.F90
REM some more numerical routines
copy numlib\ocnum.F90 .
gfortran -c -fopenmp -O2 ocnum.F90
del ocnum.F90
REM the model routines
copy models\gtp3*.F90 .
gfortran -c -fopenmp -O2 gtp3.F90
del gtp3*.F90
REM the equilibrium calculation routines
copy minimizer\matsmin.F90 .
gfortran -c -fopenmp -O2 matsmin.F90
del matsmin.F90
REM the LMDIF package for least square fitting
copy numlib\lmdif1lib.F90 .
gfortran -c -fopenmp -O2 lmdif1lib.F90
del lmdif1lib.F90
REM the routines diagrams using STEP or MAP
copy stepmapplot\smp2*.F90 .
gfortran -c -fopenmp -O2 smp2.F90
del smp2*.F90
REM the user interface
REM set -Dqtplt to use the Qt terminal driver for screen
REM -Dwinhlp needed for online help on Windows
copy userif\pmon6.F90 .
gfortran -c -fopenmp -Dwinhlp pmon6.F90
del pmon6.F90
REM storing the date
gfortran -o linkoc linkocdate.F90
linkoc
del liboceq.a
REM generating the library (needed also for TQ library)
ar sq liboceq.a metlib3.o ocnum.o oclablas.o gtp3.o matsmin.o lmdif1lib.o
REM Finally linking all together
gfortran -o oc5P -fopenmp -O2 pmain1.F90 pmon6.o smp2.o ftinyopen.o tinyopen.o tinyfiledialogs.o liboceq.a -lcomdlg32 -lole32
REM *******************************************
REM ** OC graphics require GNUPLOT 5.0 or later
REM *******************************************