Revert "Fix ngspice netlisting when net names contain '/'"

This reverts commit 216573bf48,
because the issue with net names containing '/' is not actually inside the netlist.
This commit 2165 creates issues with ngspice 2.8 and older, and do not fix anything in ngspice
This commit is contained in:
jean-pierre charras 2019-07-19 15:52:18 +02:00
parent e0589d2908
commit 3c8f901a1f
1 changed files with 0 additions and 9 deletions

View File

@ -150,15 +150,6 @@ bool NETLIST_EXPORTER_PSPICE::Format( OUTPUTFORMATTER* aFormatter, unsigned aCtl
// Replace parenthesis with underscore to prevent parse issues with simulators // Replace parenthesis with underscore to prevent parse issues with simulators
ReplaceForbiddenChars( netName ); ReplaceForbiddenChars( netName );
// Add quotes to nets containing slashes. This isn't added to ReplaceForbidenChars
// because this is only necessary for file writing; nets with slashes can be
// handled by ngspice after loading.
if( netName.Contains( "/" ) )
{
netName.Prepend( '"' );
netName.Append( '"' );
}
// Borrow LTSpice's nomenclature for unconnected nets // Borrow LTSpice's nomenclature for unconnected nets
if( netName.IsEmpty() ) if( netName.IsEmpty() )
netName = wxString::Format( wxT( "NC_%.2u" ), NC_counter++ ); netName = wxString::Format( wxT( "NC_%.2u" ), NC_counter++ );