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:
rlar 2017-01-07 19:58:18 +01:00
parent 509e2eafcd
commit ab5bf36f1c
3 changed files with 8 additions and 4 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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,