From 4a3f02e97954ee0fa27c0a27c5a29197f0d2f24e Mon Sep 17 00:00:00 2001 From: h_vogt Date: Fri, 10 Jun 2016 22:01:28 +0200 Subject: [PATCH] runcoms.c, add variable 'sim_status' to indicate if a simulation has been aborted --- src/frontend/runcoms.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontend/runcoms.c b/src/frontend/runcoms.c index 792094cba..8065f1d5f 100644 --- a/src/frontend/runcoms.c +++ b/src/frontend/runcoms.c @@ -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; }