Skip to content

Commit

Permalink
Hide results of filtered variables (#10316)
Browse files Browse the repository at this point in the history
Fixes #8271
  • Loading branch information
phannebohm committed Mar 3, 2023
1 parent 51396b3 commit 8d28dc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMCompiler/Compiler/BackEnd/BackendVariable.mo
Expand Up @@ -1254,7 +1254,7 @@ public function makeParamOutputsOnly
input output Boolean fixed; // also output for traversing
algorithm
var.varKind := BackendDAE.PARAM();
var := setVarFixed(var, fixed);
var := setHideResult(var, SOME(DAE.BCONST(true)));
var.values := if isSome(var.values) then var.values else SOME(getVariableAttributefromType(var.varType));
if isNone(DAEUtil.getFixedAttr(var.values)) then
var.values := DAEUtil.setFixedAttr(var.values, SOME(DAE.BCONST(fixed)));
Expand Down

0 comments on commit 8d28dc0

Please sign in to comment.