Diarmuid Collins
06/21/2024, 9:55 AMdlmiles
06/21/2024, 10:49 AMexit
at the end of the spice scripts might cleanup the left over debris.dlmiles
06/21/2024, 7:02 PMAlex Kral
06/22/2024, 12:03 AMdlmiles
06/22/2024, 12:05 AMquit
without the 0 is better ? You surely don't want it to stomp over a valid error code when an error did occur.
The main point I was making, with 17 copies of spice running, you ideally want to know (or having indication of) all 17 exited with 0 that ran in the same batch.Diarmuid Collins
06/22/2024, 6:37 AMDiarmuid Collins
06/22/2024, 9:05 PMdlmiles
06/22/2024, 9:36 PMexit
directive you would hope ngspice will relay the status of the last operation that occured. Like a command shell does.
This means when the ngspice script failed, it can terminates early, like half way though the script usually with error message. As the failed command is the last command that failure gets indicated via the status.
If you provide the number after the exit
then you are forcing what that exit status will be regardless for how successful the script was.
Ideally maybe its possible to do something like
# this is pseudo code I don't grok ngspice
# enough to know if this is even possible
if exit_status == 0 {
exit
}
This will only close the windows on scripts that successfully completed without error .
This would provide you with UI feedback that everything was successful (because all the windows auto closed, those that remained open should have error reason visible at end of output).
This is because it is unclear how to differentiate a successful batch of 17 runs to have all completed to a successful conclusion via any other means when run from xschem.Stefan Schippers
06/23/2024, 10:00 AMDiarmuid Collins
06/25/2024, 8:07 PMDiarmuid Collins
06/25/2024, 8:07 PM