fix usage of template function:getname

this template exists in two variants,
  one in ngspiceVersion.xml, which returns the value on the stack
  one in ngspiceMODuLE.hxx.xml, which returns the value as a 'returned' path

This particular place got the two mixed up
This commit is contained in:
rlar 2017-05-25 19:45:51 +02:00 committed by Holger Vogt
parent 60cddb4643
commit aa4f190f42
1 changed files with 4 additions and 2 deletions

View File

@ -2516,8 +2516,10 @@ inline double _d1_pow(double x,double y) { return (x==0.0)?0.0:((log(x)/exp(0.
<admst:text format="{\n"/>
<admst:for-each select="rhs/function">
<admst:value-of select="position(.)-1"/>
<admst:apply-templates select="." match="function:getname"/>
<admst:text format="double __%s_%s=0.0;\n"/>
<admst:apply-templates select="." match="function:getname">
<admst:value-of select="returned('function:getname')/value"/>
<admst:text format="double __%s_%s=0.0;\n"/>
</admst:apply-templates>
</admst:for-each>
<admst:apply-templates select="." match="ddx:function:computation"/>
</admst:if>