Skip to content

Commit

Permalink
changing compilers for the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
m_utkej committed Jul 1, 2009
1 parent 8544367 commit ee0dd89
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Manual/openad.tex
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,8 @@ \subsection{Forward Mode}\label{sec:forwardMode}
\hspace*{.3cm}\lstinline{cd $OPENDADROOT/Examples/OneMinute}\\ %$
\hspace*{.3cm}\lstinline{make}\\[1ex]
This creates an executable called \lstinline{driver}.
The \lstinline{Makefile} tests if \lstinline{F90C} is defined in the environment and
if not assumes \lstinline{gfortran} is installed and should be used.
The output generated by running \lstinline{driver} is shown in \reffig{fig:oneMinuteOutput}.\\[1ex]
\nav{An approach without using the \lstinline{openad} script is explained in \refsec{sec:manualForward}.}
\begin{figure}
Expand Down Expand Up @@ -474,7 +476,10 @@ \subsection{Reverse Mode}\label{sec:reverseMode}
As in \refsec{sec:forwardMode}, the \lstinline{openad} script
copies the appropriate run time support files into the working directory. These support
files need to be compiled and linked with the driver and the transformed code.
The example includes a \lstinline{Makefile}, see \reffig{fig:OneMinuteReverseMake},
The example includes a \lstinline{Makefile} (see \reffig{fig:OneMinuteReverseMake},
in addition to testing if \lstinline{F90C} is defined in the environment
it also tests for \lstinline{CC} and
if not assumes \lstinline{gcc} is installed and should be used),
\begin{figure}
\begin{boxedminipage}{\textwidth}
\scriptsize
Expand Down Expand Up @@ -2747,9 +2752,13 @@ \section{Two Small Examples}\label{sec:toyExample}
\item computing a whole Jacobian either iteratively or in vector mode
\item controlling call graph reversal mode
\end{itemize}
To obtain the source code for the examples in this section please refer to \refsec{sec:compilingManual}.
To run the examples one needs to install \OpenADF\ following the instructions in \refsec{sec:dab}.
As in
\refsec{sec:oneMinute}
one can change the default Fortran and C compilers for these examples by setting the
environemt variables \lstinline{F90C} and \lstinline{CC} respectively.
We have tested the examples with \lstinline{gfortran}, NAG \lstinline{f95} and Intel's \lstinline{ifort}.
\subsection{FDC example}\label{sec:fdcExample}
This example code was taken from the Minpack test problem ``flow in a driven cavity''.
Expand Down

0 comments on commit ee0dd89

Please sign in to comment.