ngspiceMODULEguesstopology.c.xml, $vt
fixme, only because some dependency detection fails to drop an expression which might involve $vt ?
This commit is contained in:
parent
5de9a90394
commit
54e0bb988b
|
|
@ -74,6 +74,17 @@
|
|||
</admst:choose>
|
||||
</admst:for-each>
|
||||
</admst:when>
|
||||
<!-- fixme, seems to be necessairy only because dependency detection does not drop an unneeded expression requiring $vt -->
|
||||
<admst:when test="[name='\$vt']">
|
||||
<admst:choose>
|
||||
<admst:when test="[nilled(arguments)]">
|
||||
<admst:value-to select="/simulator/tmp" value="((BOLTZMANN/ELECTRON_CHARGE)*ckt->CKTtemp)"/>
|
||||
</admst:when>
|
||||
<admst:when test="arguments[count(.)=1]">
|
||||
<admst:value-to select="/simulator/tmp" value="((BOLTZMANN/ELECTRON_CHARGE)*(%(arguments[1])))"/>
|
||||
</admst:when>
|
||||
</admst:choose>
|
||||
</admst:when>
|
||||
<admst:otherwise>
|
||||
<admst:variable name="mycode" select=""/>
|
||||
<admst:if test="[exists(arguments)]">
|
||||
|
|
@ -208,6 +219,9 @@
|
|||
#include "ngspice/ifsim.h"
|
||||
#include "ngspice/suffix.h"
|
||||
|
||||
#define ELECTRON_CHARGE 1.602191770e-19 /* C */
|
||||
#define BOLTZMANN 1.38062259e-23 /* J/oK */
|
||||
|
||||
#define jacobian(a,b) here->PTR_J_##a##_##b##_required=1;
|
||||
#define static_jacobian4(p,q,r,s) jacobian(p,r) jacobian(p,s) jacobian(q,r) jacobian(q,s)
|
||||
#define static_jacobian2s(p,q,r) jacobian(p,r) jacobian(q,r)
|
||||
|
|
|
|||
Loading…
Reference in New Issue