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[] = { char *CPLnames[] = {
"P+", "P+", /* 1 */ /* doesn't fit either ! */
"P-" "P-" /* 2 */ /* doesn't fit either ! */
}; };
int CPLnSize = NUMELEMS(CPLnames); int CPLnSize = NUMELEMS(CPLnames);

View File

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

View File

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