Skip to content

Commit

Permalink
Merge pull request modelica#3555 from HansOlsson/ImproveText
Browse files Browse the repository at this point in the history
AsSuggested
  • Loading branch information
HansOlsson authored Aug 9, 2024
2 parents 2362dbc + be0a158 commit 1b36fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapters/classes.tex
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ \subsection{Discrete-Time Variables}\label{discrete-time-variables}
Note that this is not the same as saying that \lstinline!der(vd) = 0! almost everywhere, as the derivative is not even defined at the events.
It is not allowed to apply \lstinline!der! to discrete-time variables.

If a \lstinline!Real! variable is declared with the prefix \lstinline!discrete!\indexinline{discrete} it must in a simulation model be assigned in a \lstinline!when!-clause, either by an assignment or an equation.
If a \lstinline!Real! variable in a simulation model is declared with the prefix \lstinline!discrete!\indexinline{discrete}, it must be assigned in a \lstinline!when!-clause, either by an assignment or an equation.
The variable assigned in a \lstinline!when!-clause shall not be defined in a sub-component of \lstinline!model! or \lstinline!block! specialized class.
(This is to keep the property of balanced models.)

Expand Down

0 comments on commit 1b36fa3

Please sign in to comment.