Remove ic parameter from voltage-controlled sources.

It was never supported by ngspice (or LTspice or pspice).

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15787
This commit is contained in:
Jeff Young 2023-10-01 12:16:06 +01:00
parent 629081af65
commit a475b01a90
1 changed files with 0 additions and 10 deletions

View File

@ -218,9 +218,6 @@ std::string SPICE_GENERATOR_SOURCE::ItemLine( const SPICE_ITEM& aItem ) const
item.modelName += fmt::format( "{} ", getParamValueString( "gain", "1.0" ) );
emptyLine = false;
if( const SIM_MODEL::PARAM* ic = m_model.FindParam( "ic" ) )
item.modelName += fmt::format( "ic={}", SIM_VALUE::ToSpice( ic->value ) );
break;
case SIM_MODEL::TYPE::V_CCL:
@ -783,13 +780,6 @@ std::vector<SIM_MODEL::PARAM::INFO> SIM_MODEL_SOURCE::makeVcParamInfos( const st
paramInfo.description = "Gain";
paramInfos.push_back( paramInfo );
paramInfo.name = "ic";
paramInfo.id = 7;
paramInfo.type = SIM_VALUE::TYPE_FLOAT;
paramInfo.unit = "V";
paramInfo.description = "Initial condition of controlling source (ic)";
paramInfos.push_back( paramInfo );
return paramInfos;
}