Write out a diode .model for built-in diodes.

This commit is contained in:
Jeff Young 2023-02-01 12:29:13 +00:00
parent 29fd1b45d6
commit b4a75cd1d5
1 changed files with 4 additions and 1 deletions

View File

@ -109,7 +109,10 @@ protected:
int doFindParam( const std::string& aParamName ) const override;
private:
bool requiresSpiceModelLine() const override { return false; }
bool requiresSpiceModelLine() const override
{
return getModelType() == MODEL_TYPE::DIODE;
}
bool canSilentlyIgnoreParam( const std::string& aParamName );