FIXME, worst case, can'T fit GENnodes[] usage at all !
this device has a completely variable number of ports, and those are not at all at the expected GENnodes[] place. perhaps this can be worked around by saying it has zero ports, together with special code in INP2..c
This commit is contained in:
parent
509e2eafcd
commit
ab5bf36f1c
|
|
@ -27,8 +27,8 @@ IFparm CPLmPTable[] = { /* model parameters */
|
||||||
};
|
};
|
||||||
|
|
||||||
char *CPLnames[] = {
|
char *CPLnames[] = {
|
||||||
"P+",
|
"P+", /* 1 */ /* doesn't fit either ! */
|
||||||
"P-"
|
"P-" /* 2 */ /* doesn't fit either ! */
|
||||||
};
|
};
|
||||||
|
|
||||||
int CPLnSize = NUMELEMS(CPLnames);
|
int CPLnSize = NUMELEMS(CPLnames);
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,12 @@ typedef struct sCPLinstance {
|
||||||
IFuid CPLname; /* pointer to character string naming this instance */
|
IFuid CPLname; /* pointer to character string naming this instance */
|
||||||
int CPLstate; /* not used */
|
int CPLstate; /* not used */
|
||||||
|
|
||||||
|
/* GENnode[] { */
|
||||||
int *CPLposNodes;
|
int *CPLposNodes;
|
||||||
int *CPLnegNodes;
|
int *CPLnegNodes;
|
||||||
|
// FIXME, worst case, two array here within GENnode[] !
|
||||||
|
/* } */
|
||||||
|
|
||||||
int dimension;
|
int dimension;
|
||||||
double CPLlength;
|
double CPLlength;
|
||||||
int *CPLibr1;
|
int *CPLibr1;
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@ SPICEdev CPLinfo = {
|
||||||
"CplLines",
|
"CplLines",
|
||||||
"Simple Coupled Multiconductor Lines",
|
"Simple Coupled Multiconductor Lines",
|
||||||
|
|
||||||
&CPLnSize,
|
&CPLnSize, /* FIXME, should be say 0 here for this special case ? */
|
||||||
&CPLnSize,
|
&CPLnSize, /* FIXME, should be say 0 here for this special case ? */
|
||||||
CPLnames,
|
CPLnames,
|
||||||
|
|
||||||
&CPLpTSize,
|
&CPLpTSize,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue