## Revision 1792

23 23
\newcommand\callout[6]{%
24 24
{\small
25 25
\put(2,#1){\circle*{1.6}}
26
\FPeval{\qX}{\mainX+5- #6}
26
\FPeval{\qX}{\mainX+3- #6}
27 27
\qbezier{(2,#1)(#2,#3)(\qX,#4)}
28 28
%  \put(#2,#3){\circle{1}}
29
\FPeval{\oX}{\qX+20.0}
30
\put(\oX,#4){\oval(40,12)}
29
\FPeval{\oX}{\qX+17.5}
30
\put(\oX,#4){\oval(35,12)}
31 31
%  \put(\oX,#4){\circle{1}}
32 32
\FPeval{\tX}{\qX+2}
33 33
\FPeval{\tY}{#4-3.5}
......
45 45
%\FPeval{\result}{clip(5+6)}%
46 46
\FPeval{\mainX}{60}
47 47
\begin{picture}(100.0,100.0)
48
49
\thicklines\put(0,0){\framebox(100.0,100.0){}}
48
49
\linethickness{2.0pt}
50
\put(0,0){\framebox(100.0,100.0){}}
50 51
\thinlines
51 52
\callout{98}{52}{99}{93}{GLOBALS\_SECTION\\ User \includes\\ User methods}{0}
52 53
\put(1,94){\shortstack[l]{ADMB \includes\ and global methods}}
53 54

54
\thinlines
55 55
\put(1,1){\begin{picture}(\mainX,91)
56 56
% main() box
57
\linethickness{1pt}
57 58
\put(0,0){\framebox(\mainX,91){%
59
\thinlines
58 60
\put(1,88){{\tt int main(int argc, char * argv[])}}
59 61
\put(0,87){\line(1,0){\mainX}}
60 62
\put(1,84){Set {\tt new} and {\tt exit} routines}
......
65 67
\put(1,30){\begin{picture}(\mpX, 50)
66 68
%  \color{red}
67 69
\put(0,0){\framebox(\mpX,50){%
68
\put(1,47){{\tt model\_parameters(...)}}
69
\put(0,46){\line(1,0){\mpX}}
70
\put(1,44){{\tt model\_parameters(...)}}
71
\put(0,43){\line(1,0){\mpX}}
70 72

71 73
%  \put(1,15){\circle{2.2}}
72 74
\FPeval{\mdX}{\mpX-2}
73
\put(1,15){\begin{picture}(\mdX,30)
75
\put(1,12){\begin{picture}(\mdX,30)
74 76
\put(0,0){\framebox(\mdX,30){%
75 77
\put(1,27){{\tt model\_data(...)}}
76 78
\put(0,26){\line(1,0){\mdX}}
......
81 83
\put(0,0){\framebox(\commX,13){%
82 84
83 85
\put(0,10){\line(1,0){\commX}}
84
\callout{8}{50}{11}{7.5}{Process certain\\ user-specified\\ commmand-line options}{3}
86
\callout{8}{50}{11}{6.0}{Process certain\\ user-specified\\ commmand-line options}{3}
85 87
\put(1,5){Initialize {\tt ad\_comm} member variables}
86 88
\put(1,2){Set file names for I/O operations}
87 89
}} % ad_comm box
......
89 91
\put(1,7){Read data from {\tt .dat} or}
90 92
\put(1,3){user-specified file.}
91 93
{\color{blue}\thicklines
92

93 94
\callout{1}{50}{1}{5}{Allocate variables\\ defined in\\DATA\_SECTION}{2}
94 95
} % blue
95 96
}} %model_data box
96 97
\end{picture}}
97
\callout{12}{\mainX}{12}{7}{Execute user code in\\ INITIALIZATION\_SECTION}{2}
98
\callout{10}{\mainX}{12}{7}{Execute user code in\\ INITIALIZATION\_\\ SECTION}{2}
98 99
{\color{blue}\thicklines
99
\callout{8}{\mainX}{9}{0}{Alllocate parameters in\\ PARAMETER\_SECTION\\ add user variables to parameter vector}{2}
100
} %blue
100
\callout{7}{\mainX}{9}{0}{Alllocate parameters in\\ \\ PARAMETER\_SECTION}{2}
101
} % blue
102
\put(1,3){Append user variables}
103
101 104
}} %model_parameters box
102 105
\end{picture}}
106
\callout{28}{\mainX}{28}{20}{Execute user code in\\PRELIMINARY\_CALCS\_\\ SECTION}{0}
103 107

104 108
}} % main() box
105 109
\end{picture}}
trunk/docs/uml/simple.tpl (revision 1792)
1
/*
2
Version of simple ADMB example with superflous SECTIONs
3
for following program flow with debugger.
4
*/
5

6
GLOBALS_SECTION
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff