Sim QA: Display the original netlist on failure

This commit is contained in:
Mikolaj Wielgus 2022-08-11 15:09:17 +02:00
parent 39de92bba2
commit fbc42bf569
1 changed files with 10 additions and 2 deletions

View File

@ -123,12 +123,20 @@ public:
// We need to make sure that the number of points always the same. // We need to make sure that the number of points always the same.
ngspice->Command( "linearize" ); ngspice->Command( "linearize" );
// Display all vectors in case we need them for debugging.
// Debug info.
// Display all vectors.
ngspice->Command( "echo Available Vectors" ); ngspice->Command( "echo Available Vectors" );
ngspice->Command( "echo -----------------" ); ngspice->Command( "echo -----------------" );
ngspice->Command( "display" ); ngspice->Command( "display" );
// Display an expanded netlist in case we need it for debugging. // Display the original netlist.
*m_log << "Original Netlist\n";
*m_log << "----------------\n";
*m_log << netlist << "\n";
// Display the expanded netlist.
ngspice->Command( "echo Expanded Netlist" ); ngspice->Command( "echo Expanded Netlist" );
ngspice->Command( "echo ----------------" ); ngspice->Command( "echo ----------------" );
ngspice->Command( "listing runnable" ); ngspice->Command( "listing runnable" );