Skip to content

Commit

Permalink
Break oversize listing line in AssertionLevel example
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Dec 16, 2021
1 parent e0fb713 commit 218c6d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chapters/equations.tex
Expand Up @@ -493,7 +493,8 @@ \subsection{assert}\label{assert}
When the temperature gets out of the smaller interval, but still stays in the largest one, the user should be warned, but the simulation should continue without any further action.
The corresponding code would be:
\begin{lstlisting}[language=modelica]
assert(T > 250 and T < 400, "Medium model outside full accuracy range", AssertionLevel.warning);
assert(T > 250 and T < 400, "Medium model outside full accuracy range",
AssertionLevel.warning);
assert(T > 200 and T < 500, "Medium model outside feasible region");
\end{lstlisting}
\end{nonnormative}
Expand Down

0 comments on commit 218c6d9

Please sign in to comment.