Browse Source

Originally only '.temp 125' had been accepted.

There has not been any error message if '=' was used,
the temperature just had been set to 0°C.
Now also '.temp=125' or .temp='param' are accepted.
pre-master-46
Holger Vogt 4 years ago
parent
commit
5a065c1657
  1. 5
      src/frontend/inp.c

5
src/frontend/inp.c

@ -1006,9 +1006,12 @@ inp_spsource(FILE *fp, bool comfile, char *filename, bool intfile)
curr_meas->nextcard = NULL;
dd = prev_card;
}
/* get temp from deck */
/* get temp from deck .temp 125 or .temp=125 */
if (ciprefix(".temp", dd->line)) {
s = skip_ws(dd->line + 5);
if (*s == '=') {
s = skip_ws(s + 1);
}
if (temperature) {
txfree(temperature);
}

Loading…
Cancel
Save