add loading from recent deck (mc_deck) if circuit

file has been removed by remcirc.
This commit is contained in:
Holger Vogt 2018-08-17 23:34:13 +02:00
parent 053a1ef15d
commit 2b071fec5a
1 changed files with 5 additions and 1 deletions

View File

@ -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");