Skip to content

Commit

Permalink
Assure various "setin*" attributes are set for AF outputs
Browse files Browse the repository at this point in the history
Analog Function output variables should definitely behave in every way
as if they're just assignments.  Assignments also set attributes like
"setinmodel" or "setininstance", and so should these.

Issue Qucs#67
  • Loading branch information
tvrusso committed Nov 28, 2022
1 parent 94a0e27 commit ed6cac8
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions admsXml/adms.implicit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,26 @@
format="%(function/name) output arg $position is %(.), must be a variable\n"/>
<admst:push into="$function/arguments[position(.)=$position]/probe" select="$function/@probe" onduplicate="ignore"/>
<admst:push into="$function/arguments[position(.)=$position]/variable" select="$function/@variable" onduplicate="ignore"/>
<admst:choose>
<admst:when test="[$globalpartitionning='initial_model']">
<admst:value-to select="$function/arguments[position(.)=$position]/setinmodel" string="yes"/>
</admst:when>
<admst:when test="[$globalpartitionning='initial_instance']">
<admst:value-to select="$function/arguments[position(.)=$position]/setininstance" string="yes"/>
</admst:when>
<admst:when test="[$globalpartitionning='initial_step']">
<admst:value-to select="$function/arguments[position(.)=$position]/setininitial_step" string="yes"/>
</admst:when>
<admst:when test="[$globalpartitionning='noise']">
<admst:value-to select="$function/arguments[position(.)=$position]/setinnoise" string="yes"/>
</admst:when>
<admst:when test="[$globalpartitionning='final_step']">
<admst:value-to select="$function/arguments[position(.)=$position]/setinfinal" string="yes"/>
</admst:when>
<admst:otherwise>
<admst:value-to select="$function/arguments[position(.)=$position]/setinevaluate" string="yes"/>
</admst:otherwise>
</admst:choose>
</admst:if>
</admst:for-each>
<admst:value-to select="$function/@probe"/>
Expand Down

0 comments on commit ed6cac8

Please sign in to comment.