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[] = {
|
||||
"P+",
|
||||
"P-"
|
||||
"P+", /* 1 */ /* doesn't fit either ! */
|
||||
"P-" /* 2 */ /* doesn't fit either ! */
|
||||
};
|
||||
|
||||
int CPLnSize = NUMELEMS(CPLnames);
|
||||
|
|
|
|||
|
|
@ -23,8 +23,12 @@ typedef struct sCPLinstance {
|
|||
IFuid CPLname; /* pointer to character string naming this instance */
|
||||
int CPLstate; /* not used */
|
||||
|
||||
/* GENnode[] { */
|
||||
int *CPLposNodes;
|
||||
int *CPLnegNodes;
|
||||
// FIXME, worst case, two array here within GENnode[] !
|
||||
/* } */
|
||||
|
||||
int dimension;
|
||||
double CPLlength;
|
||||
int *CPLibr1;
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ SPICEdev CPLinfo = {
|
|||
"CplLines",
|
||||
"Simple Coupled Multiconductor Lines",
|
||||
|
||||
&CPLnSize,
|
||||
&CPLnSize,
|
||||
&CPLnSize, /* FIXME, should be say 0 here for this special case ? */
|
||||
&CPLnSize, /* FIXME, should be say 0 here for this special case ? */
|
||||
CPLnames,
|
||||
|
||||
&CPLpTSize,
|
||||
|
|
|
|||
Loading…
Reference in New Issue