Browse Source

add loading from recent deck (mc_deck) if circuit

file has been removed by remcirc.
pre-master-46
Holger Vogt 8 years ago
parent
commit
2b071fec5a
  1. 6
      src/frontend/inp.c

6
src/frontend/inp.c

@ -479,7 +479,11 @@ inp_spsource(FILE *fp, bool comfile, char *filename, bool intfile)
deck = inp_deckcopy(ft_curckt->ci_mcdeck);
expr_w_temper = TRUE;
}
/* re-load input deck from the recent circuit structure */
else if (!ft_curckt && mc_deck) {
deck = inp_deckcopy(mc_deck);
expr_w_temper = TRUE;
}
/* no circuit available, should not happen */
else {
fprintf(stderr, "Error: No circuit loaded, cannot copy internally using mc_source\n");

Loading…
Cancel
Save