Browse Source

During unsetup delete the InstanceArray (only for OpenMP)

pre-master-46
Holger Vogt 8 years ago
parent
commit
a8a6e0b2ff
  1. 5
      src/spicelib/devices/bsim3/b3set.c
  2. 5
      src/spicelib/devices/bsim3v32/b3v32set.c
  3. 5
      src/spicelib/devices/bsim4/b4set.c
  4. 5
      src/spicelib/devices/bsim4v5/b4v5set.c
  5. 5
      src/spicelib/devices/bsim4v6/b4v6set.c
  6. 5
      src/spicelib/devices/bsim4v7/b4v7set.c
  7. 5
      src/spicelib/devices/bsimsoi/b4soiset.c

5
src/spicelib/devices/bsim3/b3set.c

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

5
src/spicelib/devices/bsim3v32/b3v32set.c

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

5
src/spicelib/devices/bsim4/b4set.c

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

5
src/spicelib/devices/bsim4v5/b4v5set.c

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

5
src/spicelib/devices/bsim4v6/b4v6set.c

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

5
src/spicelib/devices/bsim4v7/b4v7set.c

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

5
src/spicelib/devices/bsimsoi/b4soiset.c

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

Loading…
Cancel
Save