inp.c, add .param lines to evaluation of agauss etc.

This commit is contained in:
h_vogt 2016-06-04 09:49:32 +02:00 committed by rlar
parent 2f8e5747c9
commit dc8494a1b1
1 changed files with 2 additions and 1 deletions

View File

@ -1931,6 +1931,7 @@ limit(double nominal_val, double abs_variation)
* So we have to do the following in each B-line:
* check for agauss(x,y,z), and replace it by a suitable return value
* of agauss()
* agauss may also occur in .param lines, which have to be treated as well
*/
static void
@ -1958,7 +1959,7 @@ eval_agauss_bsource(struct line *deck, char *fcn)
continue;
}
if (*curr_line != 'b')
if ((*curr_line != 'b') && !ciprefix(".param", curr_line))
continue;
while ((ap = search_identifier(curr_line, fcn, curr_line)) != NULL) {