-
Notifications
You must be signed in to change notification settings - Fork 88
/
gfortran_conversion.txt
73 lines (48 loc) · 1.49 KB
/
gfortran_conversion.txt
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
DJG Summer/Fall 2008
Notes on conversion to gfortran (fortran 90)
Mainly - replacing structure with types.
0. Generic, easy stuff: cannot have Vax tab format for line conitnuation.
1. Generically,
structure /Cartesian/
real*8 x,y,z
end structure
becomes
type Cartesian
sequence
real*8 x,y,z
end type
2. instead of recon.e.x for example, references using recon%e%x
3. "sequence" is required if your vairable is used in common block. For now -
just put in every type.
4. Cannot simulatenously decalre and define:
structure /double_arm/
structure /arm/ e
real*8 delta, yptar, xptar, z
end structure
structure /arm2/ p
real*8 delta, yptar, xptar, z
end structure
end structure
becomes
type arm
sequence
real*8 delta, yptar, xptar, z
end type
type arm2
sequence
real*8 delta, yptar, xptar, z
end type
type double_arm
sequence
type(arm)::e
type(arm2)::p
end type
5. types cannot have same name as variable.
**Files not needing any changes**
enerloss_new.f
gauss1.f
loren.f
mt19937.f
trg_track.f --> removed 'simulate.inc'
NtupleClose.f
NtupleInit.f