runcoms.c, add variable 'sim_status' to indicate if a simulation has been aborted

This commit is contained in:
h_vogt 2016-06-10 22:01:28 +02:00 committed by Holger Vogt
parent 2ece845f59
commit 4a3f02e979
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}