Skip to content

Commit

Permalink
bug: if span_f is Some then ret.rhs must be as well
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjrobins committed Nov 6, 2024
1 parent a7bb388 commit 0ce680e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/discretise/discrete_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ impl<'s> DiscreteModel<'s> {
}
}
"F" => {
span_f = Some(span);
if let Some(built) = Self::build_array(tensor, &mut env) {
span_f = Some(span);
ret.rhs = built;
}
// check that F is not dstatedt dependent and only depends on u
Expand All @@ -286,8 +286,8 @@ impl<'s> DiscreteModel<'s> {
}
}
"M" => {
span_m = Some(span);
if let Some(built) = Self::build_array(tensor, &mut env) {
span_m = Some(span);
ret.lhs = Some(built);
}
// check that M is not state dependent and only depends on dudt
Expand Down

0 comments on commit 0ce680e

Please sign in to comment.