Browse Source

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

pre-master-46
h_vogt 10 years ago
committed by Holger Vogt
parent
commit
4a3f02e979
  1. 2
      src/frontend/runcoms.c

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

Loading…
Cancel
Save