Browse Source

frontend/device.c, com_alter_common(), #8/11 reorder

pre-master-46
rlar 10 years ago
parent
commit
f04d6cffc2
  1. 11
      src/frontend/device.c

11
src/frontend/device.c

@ -1330,6 +1330,12 @@ com_alter_common(wordlist *wl, int do_model)
list = TREALLOC(double, list, i + 1);
list[i++] = tmp;
}
if (i < 1) {
fprintf(cp_err, "Error: cannot evaluate new parameter value.\n");
return;
}
dv = TMALLOC(struct dvec, 1);
if (!dv)
return;
@ -1339,11 +1345,6 @@ com_alter_common(wordlist *wl, int do_model)
dv->v_realdata = list;
dv->v_length = i;
if (dv->v_length < 1) {
fprintf(cp_err, "Error: cannot evaluate new parameter value.\n");
return;
}
/* Here I was, to change the inclusion in the circuit.
* will have to revise that dv is right for its insertion.
*/

Loading…
Cancel
Save