mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 05:47:42 +02:00
inp.c, use function inp_deckcopy_oc() for saving the deck for later retrieval with mc_source
This commit is contained in:
+2
-2
@@ -344,14 +344,14 @@ inp_spsource(FILE *fp, bool comfile, char *filename, bool intfile)
|
|||||||
comfile = TRUE;
|
comfile = TRUE;
|
||||||
/* save a copy of the deck for later reloading with 'mc_source' */
|
/* save a copy of the deck for later reloading with 'mc_source' */
|
||||||
if (!comfile)
|
if (!comfile)
|
||||||
mc_deck = inp_deckcopy(deck);
|
mc_deck = inp_deckcopy_oc(deck);
|
||||||
}
|
}
|
||||||
/* inp_spsource() called with *fp == NULL: we want to reload circuit for MC simulation */
|
/* inp_spsource() called with *fp == NULL: we want to reload circuit for MC simulation */
|
||||||
else {
|
else {
|
||||||
if (mc_deck)
|
if (mc_deck)
|
||||||
deck = inp_deckcopy(mc_deck);
|
deck = inp_deckcopy(mc_deck);
|
||||||
else {
|
else {
|
||||||
fprintf(stderr, "Error: No circuit loaded, cannot copy internally\n");
|
fprintf(stderr, "Error: No circuit loaded, cannot copy internally using mc_source\n");
|
||||||
controlled_exit(1);
|
controlled_exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user