During unsetup delete the InstanceArray (only for OpenMP)

This commit is contained in:
Holger Vogt 2018-08-28 23:15:02 +02:00
parent 800c9711f2
commit a8a6e0b2ff
7 changed files with 35 additions and 0 deletions

View File

@ -1169,6 +1169,11 @@ BSIM3unsetup(
BSIM3model *model;
BSIM3instance *here;
#ifdef USE_OMP
model = (BSIM3model*)inModel;
tfree(model->BSIM3InstanceArray);
#endif
for (model = (BSIM3model *)inModel; model != NULL;
model = BSIM3nextModel(model))
{

View File

@ -1181,6 +1181,11 @@ BSIM3v32unsetup(
BSIM3v32model *model;
BSIM3v32instance *here;
#ifdef USE_OMP
model = (BSIM3v32model*)inModel;
tfree(model->BSIM3v32InstanceArray);
#endif
for (model = (BSIM3v32model *)inModel; model != NULL;
model = BSIM3v32nextModel(model))
{

View File

@ -2761,6 +2761,11 @@ CKTcircuit *ckt)
BSIM4model *model;
BSIM4instance *here;
#ifdef USE_OMP
model = (BSIM4model*)inModel;
tfree(model->BSIM4InstanceArray);
#endif
for (model = (BSIM4model *)inModel; model != NULL;
model = BSIM4nextModel(model))
{

View File

@ -2139,6 +2139,11 @@ BSIM4v5unsetup(
BSIM4v5model *model;
BSIM4v5instance *here;
#ifdef USE_OMP
model = (BSIM4v5model*)inModel;
tfree(model->BSIM4v5InstanceArray);
#endif
for (model = (BSIM4v5model *)inModel; model != NULL;
model = BSIM4v5nextModel(model))
{

View File

@ -2472,6 +2472,11 @@ BSIM4v6unsetup(GENmodel *inModel, CKTcircuit *ckt)
BSIM4v6model *model;
BSIM4v6instance *here;
#ifdef USE_OMP
model = (BSIM4v6model*)inModel;
tfree(model->BSIM4v6InstanceArray);
#endif
for (model = (BSIM4v6model *)inModel; model != NULL;
model = BSIM4v6nextModel(model))
{

View File

@ -2629,6 +2629,11 @@ CKTcircuit *ckt)
BSIM4v7model *model;
BSIM4v7instance *here;
#ifdef USE_OMP
model = (BSIM4v7model*)inModel;
tfree(model->BSIM4v7InstanceArray);
#endif
for (model = (BSIM4v7model *)inModel; model != NULL;
model = BSIM4v7nextModel(model))
{

View File

@ -2766,6 +2766,11 @@ B4SOIunsetup(
B4SOImodel *model;
B4SOIinstance *here;
#ifdef USE_OMP
model = (B4SOImodel*)inModel;
tfree(model->B4SOIInstanceArray);
#endif
for (model = (B4SOImodel *)inModel; model != NULL;
model = B4SOInextModel(model))
{