mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 05:47:42 +02:00
Add mem_init() and mem_delete() to setup and unsetup functions
This commit is contained in:
@@ -147,6 +147,9 @@ CPLsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *state)
|
|||||||
|
|
||||||
NG_IGNORE(state);
|
NG_IGNORE(state);
|
||||||
|
|
||||||
|
/* hash table for local gc */
|
||||||
|
mem_init();
|
||||||
|
|
||||||
/* loop through all the models */
|
/* loop through all the models */
|
||||||
for( ; model != NULL; model = CPLnextModel(model)) {
|
for( ; model != NULL; model = CPLnextModel(model)) {
|
||||||
|
|
||||||
@@ -349,6 +352,7 @@ CPLunsetup(GENmodel *inModel, CKTcircuit *ckt)
|
|||||||
here->CPLibr2Given = 0;
|
here->CPLibr2Given = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
mem_delete();
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user