1258 |
the parts of the code that are relevant for automatic |
the parts of the code that are relevant for automatic |
1259 |
differentiation using the software tool TAMC. |
differentiation using the software tool TAMC. |
1260 |
|
|
|
\begin{figure}[b!] |
|
1261 |
\input{part5/doc_ad_the_model} |
\input{part5/doc_ad_the_model} |
|
\caption{~} |
|
|
\label{fig:adthemodel} |
|
|
\end{figure} |
|
1262 |
|
|
1263 |
The basic flow is depicted in \ref{fig:adthemodel}. |
The basic flow is depicted in \ref{fig:adthemodel}. |
1264 |
If the option {\tt ALLOW\_AUTODIFF\_TAMC} is defined, the driver routine |
If the option {\tt ALLOW\_AUTODIFF\_TAMC} is defined, the driver routine |
1295 |
(parameter setting, initialization, accumulation, |
(parameter setting, initialization, accumulation, |
1296 |
final evaluation), are controlled by the package {\it pkg/cost}. |
final evaluation), are controlled by the package {\it pkg/cost}. |
1297 |
|
|
|
\begin{figure}[h!] |
|
1298 |
\input{part5/doc_cost_flow} |
\input{part5/doc_cost_flow} |
|
\caption{~} |
|
|
\label{fig:costflow} |
|
|
\end{figure} |
|
1299 |
|
|
1300 |
\subsubsection{genmake and CPP options} |
\subsubsection{genmake and CPP options} |
1301 |
% |
% |
1426 |
|
|
1427 |
%%%% \end{document} |
%%%% \end{document} |
1428 |
|
|
|
\begin{figure} |
|
1429 |
\input{part5/doc_ad_the_main} |
\input{part5/doc_ad_the_main} |
|
\caption{~} |
|
|
\label{fig:adthemain} |
|
|
\end{figure} |
|
1430 |
|
|
1431 |
\subsection{The control variables (independent variables) |
\subsection{The control variables (independent variables) |
1432 |
\label{section_ctrl}} |
\label{section_ctrl}} |
1446 |
(parameter setting, initialization, perturbation) |
(parameter setting, initialization, perturbation) |
1447 |
are controlled by the package {\it pkg/ctrl}. |
are controlled by the package {\it pkg/ctrl}. |
1448 |
|
|
|
\begin{figure}[h!] |
|
1449 |
\input{part5/doc_ctrl_flow} |
\input{part5/doc_ctrl_flow} |
|
\caption{~} |
|
|
\label{fig:ctrlflow} |
|
|
\end{figure} |
|
1450 |
|
|
1451 |
\subsubsection{genmake and CPP options} |
\subsubsection{genmake and CPP options} |
1452 |
% |
% |
1897 |
Finally, {\it ctrl\_pack} collects all adjoint files |
Finally, {\it ctrl\_pack} collects all adjoint files |
1898 |
and writes them to the compressed vector file |
and writes them to the compressed vector file |
1899 |
{\bf vector\_grad\_$<$k$>$}. |
{\bf vector\_grad\_$<$k$>$}. |
|
|
|
|
\subsection{TLM and ADM generation via TAMC} |
|
|
|
|
|
|
|
|
|
|
|
\subsection{Flow directives and adjoint support routines \label{section_flowdir}} |
|
|
|
|
|
\subsection{Store directives and checkpointing \label{section_checkpointing}} |
|
|
|
|
|
\subsection{Gradient checks \label{section_grdchk}} |
|
|
|
|
|
\subsection{Second derivative generation via TAMC} |
|
|
|
|
|
\section{Example of adjoint code} |
|