runcoms.c, add variable 'sim_status' to indicate if a simulation has been aborted
This commit is contained in:
parent
2ece845f59
commit
4a3f02e979
|
|
@ -298,6 +298,7 @@ dosim(
|
|||
last_used_rawfile = NULL;
|
||||
|
||||
ft_curckt->ci_inprogress = TRUE;
|
||||
cp_vset("sim_status", CP_NUM, &err);
|
||||
/* "sens2" not used in ngspice */
|
||||
if (eq(what, "sens2")) {
|
||||
if (if_sens_run(ft_curckt->ci_ckt, ww, ft_curckt->ci_symtab) == 1) {
|
||||
|
|
@ -331,6 +332,7 @@ dosim(
|
|||
fprintf(cp_err, "%s simulation(s) aborted\n", what);
|
||||
ft_curckt->ci_inprogress = FALSE;
|
||||
err = 1;
|
||||
cp_vset("sim_status", CP_NUM, &err);
|
||||
} else {
|
||||
ft_curckt->ci_inprogress = FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue