Skip to content

Commit

Permalink
Avoid having both start-value and initial equation.
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed Sep 12, 2023
1 parent ac72d17 commit 7a8e136
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modelica/Blocks/Continuous.mo
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ package Continuous "Library of continuous control blocks with internal states"
Dialog(group="Initialization"));
parameter Real y_start=0 "Initial or guess value of output (= state)"
annotation (Dialog(group="Initialization"));
extends Interfaces.SISO(y(start=y_start));
extends Interfaces.SISO;
Modelica.Blocks.Interfaces.BooleanInput reset if use_reset "Optional connector of reset signal" annotation(Placement(
transformation(
extent={{-20,-20},{20,20}},
Expand Down Expand Up @@ -144,7 +144,7 @@ port has a rising edge.
annotation (Dialog(group="Initialization"));
parameter Boolean strict=false "= true, if strict limits with noEvent(..)"
annotation (Evaluate=true, choices(checkBox=true), Dialog(tab="Advanced"));
extends Interfaces.SISO(y(start=y_start));
extends Interfaces.SISO;
Modelica.Blocks.Interfaces.BooleanInput reset if use_reset "Optional connector of reset signal" annotation(Placement(
transformation(
extent={{-20,-20},{20,20}},
Expand Down

0 comments on commit 7a8e136

Please sign in to comment.