inp2m.c, #6/9c, now fix model_numnodes()
to prevent instance struct storage beeing overwritten.
This commit is contained in:
parent
54f6bd8d56
commit
09fbc0ee97
|
|
@ -16,17 +16,21 @@ Modified: 2001 Paolo Nenzi (Cider Integration)
|
||||||
static int
|
static int
|
||||||
model_numnodes(int type)
|
model_numnodes(int type)
|
||||||
{
|
{
|
||||||
if (type == INPtypelook("B4SOI") ||
|
if (type == INPtypelook("B4SOI") || /* 7 ; B4SOInames */
|
||||||
type == INPtypelook("B3SOIPD") ||
|
type == INPtypelook("B3SOIPD") || /* 7 ; B3SOIPDnames */
|
||||||
type == INPtypelook("B3SOIFD") ||
|
type == INPtypelook("B3SOIFD") || /* 7 ; B3SOIFDnames */
|
||||||
type == INPtypelook("B3SOIDD") ||
|
type == INPtypelook("B3SOIDD")) /* 7 ; B3SOIDDnames */
|
||||||
type == INPtypelook("HiSIMHV1") ||
|
|
||||||
type == INPtypelook("HiSIMHV2") ||
|
|
||||||
type == INPtypelook("SOI3"))
|
|
||||||
{
|
{
|
||||||
return 7;
|
return 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (type == INPtypelook("HiSIMHV1") || /* 6 ; HSMHVnames */
|
||||||
|
type == INPtypelook("HiSIMHV2") || /* 6 ; HSMHV2names */
|
||||||
|
type == INPtypelook("SOI3")) /* 6 ; SOI3names */
|
||||||
|
{
|
||||||
|
return 6;
|
||||||
|
}
|
||||||
|
|
||||||
return 4;
|
return 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue