Skip to content

Commit

Permalink
Also give non-normative example of using Evaluate = false
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Mar 31, 2021
1 parent b1b0dd4 commit 8b5c22b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chapters/annotations.tex
Expand Up @@ -346,7 +346,9 @@ \section{Annotations for Code Generation}\label{annotations-for-code-generation}
For both parameters and constants -- even when the value can be determined during translation -- the model developer further proposes to not utilize the value for symbolic processing.

\begin{nonnormative}
\lstinline!Evaluate! is for example used for axis of rotation parameters in the \lstinline!Modelica.Mechanics.MultiBody! library in order to improve the efficiency of the generated code.
\lstinline!Evaluate = true! is for example used for axis of rotation parameters in the \lstinline!Modelica.Mechanics.MultiBody! library in order to improve the efficiency of the generated code.

Conversely, a possible use of \lstinline!Evaluate = false! is to ensure that a parameter can be changed after translation, even when a tool might be tempted to evaluate it to improve the efficiency of the generated code.
\end{nonnormative}

\begin{example}
Expand Down

0 comments on commit 8b5c22b

Please sign in to comment.