Browse Source

warning: .meas not possible with -b

pre-master-46
h_vogt 17 years ago
parent
commit
8a2f81f61f
  1. 1
      ChangeLog
  2. 10
      src/frontend/measure.c

1
ChangeLog

@ -1,5 +1,6 @@
2009-12-11 Holger Vogt
* bug 2909730, patch for parsing expressions applied
* measure.c: Proper warning that .measure is not available in batch mode with -b
2009-12-10 Dietmar Warning
* spicelib/parser/inptree.c: omit some debug printf's

10
src/frontend/measure.c

@ -30,7 +30,7 @@ static bool just_chk_meas; /* TRUE: only check if measurement can be done succ
no output generated (if option autostop is set)*/
static bool measures_passed; /* TRUE: stop simulation (if option autostop is set)*/
extern bool ft_batchmode;
static bool
chkAnalysisType( char *an_type ) {
@ -43,6 +43,7 @@ chkAnalysisType( char *an_type ) {
if ( strcmp( an_type, "tran" ) != 0 && strcmp( an_type, "ac" ) != 0 &&
strcmp( an_type, "dc" ) != 0)
return FALSE;
// else if (ft_batchmode == TRUE) return FALSE;
else return TRUE;
}
@ -114,6 +115,13 @@ do_measure(
strtolower( an_name );
measure_word_list = NULL ;
/* don't allow .meas if batchmode is set by -b */
if (ft_batchmode) {
fprintf(cp_err, "\nNo .measure possible in batch mode (-b)!\n");
fprintf(cp_err, "Select interactive mode (optionally with .control section) instead.\n\n");
return;
}
/* 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:

Loading…
Cancel
Save