Browse Source

Warning message, when 'run' is called without job

(tran, op, ac etc.) is defined.
pre-master-46
Holger Vogt 4 years ago
parent
commit
6037450952
  1. 6
      src/frontend/runcoms.c
  2. 5
      src/frontend/spiceif.c

6
src/frontend/runcoms.c

@ -349,6 +349,12 @@ static int dosim(
err = 1;
cp_vset("sim_status", CP_NUM, &err);
}
else if (err == 3) {
fprintf(cp_err, "%s simulation not started\n", what);
ft_curckt->ci_inprogress = FALSE;
err = 1;
cp_vset("sim_status", CP_NUM, &err);
}
else {
ft_curckt->ci_inprogress = FALSE;
}

5
src/frontend/spiceif.c

@ -330,6 +330,11 @@ if_run(CKTcircuit *ckt, char *what, wordlist *args, INPtables *tab)
if (eq(what, "run")) {
ft_curckt->ci_curTask = ft_curckt->ci_defTask;
ft_curckt->ci_curOpt = ft_curckt->ci_defOpt;
if (ft_curckt->ci_curTask->jobs == NULL) {
/* nothing to 'run' */
fprintf(stderr, "Warning: No job (tran, ac, op etc.) defined:\n");
return (3);
}
}
/* -- Find out what we are supposed to do. */

Loading…
Cancel
Save