Sim: Ignore the "mfg" parameter in all models
This commit is contained in:
parent
952f3da53f
commit
7378aaae9d
|
@ -92,14 +92,14 @@ void SIM_MODEL_NGSPICE::SetParamFromSpiceCode( const std::string& aParamName,
|
||||||
if( paramName == "level" || paramName == "version" )
|
if( paramName == "level" || paramName == "version" )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Also ignore "type" parameter, because Ngspice does that too.
|
// Ignore the purely informative LTspice-specific parameters "mfg" and "type".
|
||||||
if( paramName == "type" )
|
if( paramName == "mfg" || paramName == "type" )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if( GetDeviceType() == DEVICE_TYPE_::NPN || GetDeviceType() == DEVICE_TYPE_::PNP )
|
if( GetDeviceType() == DEVICE_TYPE_::NPN || GetDeviceType() == DEVICE_TYPE_::PNP )
|
||||||
{
|
{
|
||||||
// Ignore the purely informative LTspice-specific parameters "mfg", "icrating", "vceo".
|
// Ignore the purely informative LTspice-specific parameters "icrating" and "vceo".
|
||||||
if( paramName == "mfg" || paramName == "icrating" || paramName == "vceo" )
|
if( paramName == "icrating" || paramName == "vceo" )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Ignore unused parameters.
|
// Ignore unused parameters.
|
||||||
|
|
Loading…
Reference in New Issue