mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-29 01:04:55 +02:00
add loading from recent deck (mc_deck) if circuit
file has been removed by remcirc.
This commit is contained in:
+5
-1
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user