|
|
|
@ -62,6 +62,7 @@ ASRCsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) |
|
|
|
} |
|
|
|
|
|
|
|
here->ASRCposptr = TMALLOC(double *, j); |
|
|
|
here->ASRCvars = TMALLOC(int *, here->ASRCtree->numVars); |
|
|
|
here->ASRCacValues = TMALLOC(double *, here->ASRCtree->numVars + 1); |
|
|
|
|
|
|
|
/* For each controlling variable set the entries |
|
|
|
@ -103,6 +104,8 @@ ASRCsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) |
|
|
|
return (E_BADPARM); |
|
|
|
} |
|
|
|
|
|
|
|
here->ASRCvars[i] = column; |
|
|
|
|
|
|
|
if (here->ASRCtype == ASRC_VOLTAGE) { |
|
|
|
TSTALLOC(ASRCposptr[j++], here->ASRCbranch, column); |
|
|
|
} else { |
|
|
|
|