From c8c58b9f5bb0c6ff242f872f648ce43aeb22e3aa Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Tue, 21 Jul 2020 00:07:37 +0200 Subject: [PATCH] Print out the netlist sent to ngspice by caller via 'circbyline' or ngSpice_Circ --- src/frontend/inp.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/frontend/inp.c b/src/frontend/inp.c index 1bd4c9989..5c0f82690 100644 --- a/src/frontend/inp.c +++ b/src/frontend/inp.c @@ -1707,7 +1707,7 @@ static void cktislinear(CKTcircuit *ckt, struct card *deck) /* global array for assembling circuit lines entered by fcn circbyline * or receiving array from external caller. Array is created whenever - * a new deck is started. Last line of the array has to get the value NULL */ + * a new deck is started. Last line of the array has to get the string ".end" */ char **circarray; @@ -1732,7 +1732,11 @@ void create_circbyline(char *line) } while (ch_cur != '\0'); } - + if (ft_ngdebug) { + if (linec == 0) + fprintf(stdout, "**** circbyline: circuit netlist sent to shared ngspice ****\n"); + fprintf(stdout, "%d %s\n", linec, line); + } circarray[linec++] = line; /* add card to deck */ /* If the card added ended the deck, send it for processing and