measure.c: disable autostop, if no .meas commands found

This commit is contained in:
h_vogt 2013-05-09 11:45:15 +02:00 committed by rlar
parent d4e5d1f836
commit 745ea9ff3e
1 changed files with 8 additions and 0 deletions

View File

@ -239,6 +239,14 @@ do_measure(
return (measures_passed);
}
/* don't allow autostop if no .meas commands are given in the input file */
if ((cp_getvar("autostop", CP_BOOL, NULL)) && (ft_curckt->ci_meas == NULL)) {
fprintf(cp_err, "\nWarning: No .meas commands found!\n");
fprintf(cp_err, " Option autostop is not available, ignored!\n\n");
cp_remvar("autostop");
return (FALSE);
}
/* Evaluating the linked list of .meas cards, assembled from the input deck
by fcn inp_spsource() in inp.c:575.
A typical .meas card will contain: