efabless / cace

Circuit Automatic Characterization Engine
https://cace.readthedocs.io/
Apache License 2.0
36 stars 6 forks source link

Force ngspice exit on error #11

Closed RTimothyEdwards closed 4 months ago

RTimothyEdwards commented 4 months ago

Implemented code that catches ngspice dropping back to the interpreter after encountering a parse error in the input. This prevents the severe problem of having all the simulations "lock up" and fail to respond because they are all waiting for interpreter input that will not be coming. Unfortunately the ngspice setting "strict_errorhandling" does not work for parse errors, and until that is fixed, this somewhat hack solution is a valid workaround.