|
|
@ -16,6 +16,7 @@ Author: 1985 Thomas L. Quarles |
|
|
void |
|
|
void |
|
|
NIdestroy(CKTcircuit *ckt) |
|
|
NIdestroy(CKTcircuit *ckt) |
|
|
{ |
|
|
{ |
|
|
|
|
|
int i; |
|
|
if (ckt->CKTmatrix) |
|
|
if (ckt->CKTmatrix) |
|
|
SMPdestroy(ckt->CKTmatrix); |
|
|
SMPdestroy(ckt->CKTmatrix); |
|
|
ckt->CKTmatrix = NULL; |
|
|
ckt->CKTmatrix = NULL; |
|
|
@ -33,4 +34,10 @@ NIdestroy(CKTcircuit *ckt) |
|
|
SENdestroy(ckt->CKTsenInfo); |
|
|
SENdestroy(ckt->CKTsenInfo); |
|
|
} |
|
|
} |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#ifdef PREDICTOR |
|
|
|
|
|
if(ckt->CKTpred) FREE(ckt->CKTpred); |
|
|
|
|
|
for( i=0;i<8;i++) { |
|
|
|
|
|
if(ckt->CKTsols[i]) FREE(ckt->CKTsols[i]); |
|
|
|
|
|
} |
|
|
|
|
|
#endif |
|
|
} |
|
|
} |