Sim LTspice compat: Ignore mfg, icrating, vceo, type params

This commit is contained in:
Mikolaj Wielgus 2022-09-18 04:14:31 +02:00
parent dcb3f16fbc
commit 4128a5533f
1 changed files with 7 additions and 0 deletions

View File

@ -89,6 +89,13 @@ bool SIM_MODEL_NGSPICE::SetParamFromSpiceCode( const wxString& aParamName, const
if( aParamName == "level" || aParamName == "version" )
return true;
// Ignore purely informative LTspice-specific parameters "mfg", "icrating", "vceo".
if( aParamName == "mfg" || aParamName == "icrating" || aParamName == "vceo" )
return true;
// Also ignore "type" parameter, because Ngspice does that too.
if( aParamName == "type" )
return true;
// First we try to use the name as is. Note that you can't set instance parameters from this
// function, it's generally for ".model" cards, not for instantiations.