inp2m.c, #6/9c, now fix model_numnodes()

to prevent instance struct storage beeing overwritten.
This commit is contained in:
rlar 2017-03-07 21:13:47 +01:00
parent 54f6bd8d56
commit 09fbc0ee97
1 changed files with 11 additions and 7 deletions

View File

@ -16,17 +16,21 @@ Modified: 2001 Paolo Nenzi (Cider Integration)
static int
model_numnodes(int type)
{
if (type == INPtypelook("B4SOI") ||
type == INPtypelook("B3SOIPD") ||
type == INPtypelook("B3SOIFD") ||
type == INPtypelook("B3SOIDD") ||
type == INPtypelook("HiSIMHV1") ||
type == INPtypelook("HiSIMHV2") ||
type == INPtypelook("SOI3"))
if (type == INPtypelook("B4SOI") || /* 7 ; B4SOInames */
type == INPtypelook("B3SOIPD") || /* 7 ; B3SOIPDnames */
type == INPtypelook("B3SOIFD") || /* 7 ; B3SOIFDnames */
type == INPtypelook("B3SOIDD")) /* 7 ; B3SOIDDnames */
{
return 7;
}
if (type == INPtypelook("HiSIMHV1") || /* 6 ; HSMHVnames */
type == INPtypelook("HiSIMHV2") || /* 6 ; HSMHV2names */
type == INPtypelook("SOI3")) /* 6 ; SOI3names */
{
return 6;
}
return 4;
}