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:
parent
629081af65
commit
a475b01a90
|
@ -218,9 +218,6 @@ std::string SPICE_GENERATOR_SOURCE::ItemLine( const SPICE_ITEM& aItem ) const
|
||||||
item.modelName += fmt::format( "{} ", getParamValueString( "gain", "1.0" ) );
|
item.modelName += fmt::format( "{} ", getParamValueString( "gain", "1.0" ) );
|
||||||
emptyLine = false;
|
emptyLine = false;
|
||||||
|
|
||||||
if( const SIM_MODEL::PARAM* ic = m_model.FindParam( "ic" ) )
|
|
||||||
item.modelName += fmt::format( "ic={}", SIM_VALUE::ToSpice( ic->value ) );
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SIM_MODEL::TYPE::V_CCL:
|
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";
|
paramInfo.description = "Gain";
|
||||||
paramInfos.push_back( paramInfo );
|
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;
|
return paramInfos;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue