From a475b01a903840afbac25ce53691b421aef856cc Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 1 Oct 2023 12:16:06 +0100 Subject: [PATCH] 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 --- eeschema/sim/sim_model_source.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/eeschema/sim/sim_model_source.cpp b/eeschema/sim/sim_model_source.cpp index 3ead9ee11f..ebbf1b05fa 100644 --- a/eeschema/sim/sim_model_source.cpp +++ b/eeschema/sim/sim_model_source.cpp @@ -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_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; }