Don't send 'reset' to ngspice when there is no circuit loaded
Description
An ngspice error message appears when a simulation is started:
Error: there is no circuit loaded.
This is due to a premature sending of command 'reset' to ngspice. When there is no ciruit loaded the command is ingnored with an error message (warning message in upcoming ngspice-38).
Steps to reproduce
- Start any simulation
KiCad Version
Application: KiCad Schematic Editor (64-bit)
Version: (6.99.0-3519-g7e089182b8), release build
Libraries:
wxWidgets 3.2.1
FreeType 2.11.1
HarfBuzz 4.2.0
FontConfig 2.14.0
libcurl/7.83.1-DEV Schannel zlib/1.2.12
Platform: Windows 10 (build 19044), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Sep 20 2022 07:23:14
wxWidgets: 3.2.1 (wchar_t,wx containers)
Boost: 1.79.0
OCC: 7.6.0
Curl: 7.83.1-DEV
ngspice: 37
Compiler: Visual C++ 1929 without C++ ABI
Build settings:
KICAD_SPICE=ON
Edited by holvo