GENmodel, GENinstance, change layout, #2/4, complete the change
fix the .xml files too
This commit is contained in:
parent
2dcb79d09c
commit
c25aea6815
|
|
@ -51,10 +51,10 @@ int $(module)acLoad(GENmodel *inModel, CKTcircuit *ckt)
|
|||
{
|
||||
$(module)model *model = ($(module)model*)inModel;
|
||||
$(module)instance *here;
|
||||
for ( ; model != NULL; model = model->$(module)nextModel )
|
||||
for ( ; model != NULL; model = $(module)nextModel(model) )
|
||||
{
|
||||
/* loop through all the instances of the model */
|
||||
for (here = model->$(module)instances; here != NULL ; here = here->$(module)nextInstance)
|
||||
for (here = $(module)instances(model); here != NULL ; here = $(module)nextInstance(here))
|
||||
{
|
||||
<admst:for-each select="jacobian[static='yes']">
|
||||
<admst:value-of select="column/name"/>
|
||||
|
|
|
|||
|
|
@ -194,10 +194,10 @@ int $(module)load(GENmodel *inModel, CKTcircuit *ckt)
|
|||
((ckt->CKTmode & MODETRANOP) && (ckt->CKTmode & MODEUIC)))
|
||||
? 1 : 0;
|
||||
|
||||
for ( ; model != NULL; model = model->$(module)nextModel )
|
||||
for ( ; model != NULL; model = $(module)nextModel(model) )
|
||||
{
|
||||
/* loop through all the instances of the model */
|
||||
for (here = model->$(module)instances; here != NULL ; here = here->$(module)nextInstance)
|
||||
for (here = $(module)instances(model); here != NULL ; here = $(module)nextInstance(here))
|
||||
{
|
||||
{
|
||||
<admst:for-each select="jacobian[static='yes']">
|
||||
|
|
|
|||
|
|
@ -48,9 +48,9 @@ $(module)noise (int mode, int operation, GENmodel *genmodel, CKTcircuit *ckt, Nd
|
|||
$(module)model *firstModel = ($(module)model *) genmodel;
|
||||
$(module)model *model;
|
||||
$(module)instance *inst;
|
||||
for (model=firstModel; model != NULL; model=model->$(module)nextModel)
|
||||
for (model=firstModel; model != NULL; model=$(module)nextModel(model))
|
||||
{
|
||||
for (inst=model->$(module)instances; inst != NULL; inst=inst->$(module)nextInstance)
|
||||
for (inst=$(module)instances(model); inst != NULL; inst=$(module)nextInstance(inst))
|
||||
{
|
||||
switch (operation)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -53,10 +53,10 @@ int $(module)pzLoad(GENmodel *inModel, CKTcircuit *ckt, SPcomplex *s)
|
|||
$(module)model *model = ($(module)model*)inModel;
|
||||
$(module)instance *here;
|
||||
NG_IGNOREABLE(ckt);
|
||||
for ( ; model != NULL; model = model->$(module)nextModel )
|
||||
for ( ; model != NULL; model = $(module)nextModel(model) )
|
||||
{
|
||||
/* loop through all the instances of the model */
|
||||
for (here = model->$(module)instances; here != NULL ; here = here->$(module)nextInstance)
|
||||
for (here = $(module)instances(model); here != NULL ; here = $(module)nextInstance(here))
|
||||
{
|
||||
<admst:for-each select="jacobian[static='yes']">
|
||||
<admst:value-of select="column/name"/>
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ int $(module)setup (SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *
|
|||
$(module)instance *here;
|
||||
|
||||
/* loop through all the $(module) device models */
|
||||
for ( ;model != NULL ;model = model->$(module)nextModel )
|
||||
for ( ;model != NULL ;model = $(module)nextModel(model) )
|
||||
{
|
||||
<admst:for-each select="variable[parametertype='model' and input='yes']">
|
||||
<admst:if test="default[not(nilled(function[class='builtin']))]">
|
||||
|
|
@ -79,7 +79,7 @@ int $(module)setup (SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *
|
|||
<admst:text format="}\n"/>
|
||||
</admst:if>
|
||||
</admst:for-each>
|
||||
for ( here = model->$(module)instances ;here != NULL ; here = here->$(module)nextInstance )
|
||||
for ( here = $(module)instances(model) ;here != NULL ; here = $(module)nextInstance(here) )
|
||||
{
|
||||
<admst:for-each select="variable[parametertype='instance' and input='yes']">
|
||||
<admst:if test="default[not(nilled(function[class='builtin']))]">
|
||||
|
|
@ -174,9 +174,9 @@ $(module)unsetup(GENmodel *inModel, CKTcircuit *ckt)
|
|||
$(module)instance *here;
|
||||
|
||||
/* loop through all the $(module) device models */
|
||||
for ( ;model != NULL ;model = model->$(module)nextModel )
|
||||
for ( ;model != NULL ;model = $(module)nextModel(model) )
|
||||
{
|
||||
for ( here = model->$(module)instances ;here != NULL ; here = here->$(module)nextInstance )
|
||||
for ( here = $(module)instances(model) ;here != NULL ; here = $(module)nextInstance(here) )
|
||||
{
|
||||
<admst:for-each select="reverse(node[location='internal'])">
|
||||
<admst:value-of select="name"/>
|
||||
|
|
|
|||
|
|
@ -58,12 +58,12 @@ int $(module)temp(GENmodel *inModel, CKTcircuit *ckt)
|
|||
$(module)model *model = ($(module)model*)inModel;
|
||||
$(module)instance *here;
|
||||
NG_IGNOREABLE(ckt);
|
||||
for ( ; model != NULL; model = model->$(module)nextModel )
|
||||
for ( ; model != NULL; model = $(module)nextModel(model) )
|
||||
{
|
||||
|
||||
<admst:apply-templates select="analog" match="analog:initial_model" required="yes"/>
|
||||
/* loop through all the instances of the model */
|
||||
for (here = model->$(module)instances; here != NULL ; here = here->$(module)nextInstance)
|
||||
for (here = $(module)instances(model); here != NULL ; here = $(module)nextInstance(here))
|
||||
{
|
||||
|
||||
<admst:apply-templates select="analog" match="analog:initial_instance" required="yes"/>
|
||||
|
|
|
|||
|
|
@ -56,10 +56,10 @@ int $(module)trunc(GENmodel *inModel, CKTcircuit *ckt, double *timeStep)
|
|||
double debugtemp;
|
||||
#endif /* STEPDEBUG */
|
||||
|
||||
for ( ; model != NULL; model = model->$(module)nextModel )
|
||||
for ( ; model != NULL; model = $(module)nextModel(model) )
|
||||
{
|
||||
/* loop through all the instances of the model */
|
||||
for (here = model->$(module)instances; here != NULL ; here = here->$(module)nextInstance)
|
||||
for (here = $(module)instances(model); here != NULL ; here = $(module)nextInstance(here))
|
||||
{
|
||||
#ifdef STEPDEBUG
|
||||
debugtemp = *timeStep;
|
||||
|
|
|
|||
Loading…
Reference in New Issue