Skip to content

Commit

Permalink
Add space around '=' in code
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Nov 27, 2020
1 parent 73c4942 commit 310f5c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions chapters/classes.tex
Expand Up @@ -278,7 +278,8 @@ \subsubsection{Prefix Rules}\label{prefix-rules}

\subsection{Acyclic Bindings of Constants and Parameters}\label{acyclic-bindings-of-constants-and-parameters}

The unexpanded binding equations for parameters and constants in the translated model must be acyclic after flattening; except that cycles are allowed if the cycles disappear when evaluating parameters having annotation \lstinline!Evaluate=true! that are not part of the cycle. Thus it is not possible to introduce equations for parameters by cyclic dependencies.
The unexpanded binding equations for parameters and constants in the translated model must be acyclic after flattening; except that cycles are allowed if the cycles disappear when evaluating parameters having annotation \lstinline!Evaluate = true! that are not part of the cycle.
Thus it is not possible to introduce equations for parameters by cyclic dependencies.

\begin{example}
\begin{lstlisting}[language=modelica]
Expand All @@ -302,7 +303,7 @@ \subsection{Acyclic Bindings of Constants and Parameters}\label{acyclic-bindings

partial model PartialLumpedVolume
parameter Boolean use_T_start = true "= true, use T_start, otherwise h_start"
annotation(Dialog(tab = "Initialization"), Evaluate=true);
annotation(Dialog(tab = "Initialization"), Evaluate = true);
parameter Medium.Temperature T_start=if use_T_start then system.T_start else
Medium.temperature_phX(p_start,h_start,X_start)
annotation(Dialog(tab = "Initialization", enable = use_T_start));
Expand Down

0 comments on commit 310f5c4

Please sign in to comment.