From 80a039983eed3ea9f9638b5c9c54eb44dc141b69 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sun, 19 Feb 2012 16:38:33 +0000 Subject: [PATCH] dummy functions --- ChangeLog | 5 +++++ src/frontend/com_cdump.c | 13 ++++++------- src/frontend/commands.c | 4 ++-- src/main.c | 18 ++++++++++++++++++ 4 files changed, 31 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index f87446c2e..299fe0dbe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-02-19 Holger Vogt + * com_cdump.c, commands.c, main.c: + dummy functions for SMPprint() and SMPprintRHS() to allow making of ngnutmeg, + small updates, comments + 2012-02-19 Dietmar Warning * src/spicelib/devices/asrc/*.c,*.h * src/frontend/inpcom.c, diff --git a/src/frontend/com_cdump.c b/src/frontend/com_cdump.c index b097cbe0f..5abc1d4c5 100644 --- a/src/frontend/com_cdump.c +++ b/src/frontend/com_cdump.c @@ -1,15 +1,12 @@ /* Command cdump: dump the control structure to the console output */ -/* Command mdump: dump the matrix of the actual circuit to stdout or a file */ #include "ngspice/ngspice.h" #include #include "ngspice/wordlist.h" - #include "control.h" #include "ngspice/cpextern.h" #include "ngspice/fteext.h" -#include "ngspice/smpdefs.h" #include "ngspice/cktdefs.h" #include "com_cdump.h" @@ -147,6 +144,7 @@ com_cdump(wordlist *wl) return; } +/* dump circuit matrix to stdout or file */ void com_mdump(wordlist *wl) { @@ -162,10 +160,10 @@ com_mdump(wordlist *wl) if (ckt->CKTmatrix) if (wl == NULL) - SMPprint( ckt->CKTmatrix , NULL); + SMPprint(ckt->CKTmatrix , NULL); else { s = cp_unquote(wl->wl_word); - SMPprint( ckt->CKTmatrix , s); + SMPprint(ckt->CKTmatrix , s); } else fprintf(cp_err, "Error: no matrix available.\n"); @@ -173,6 +171,7 @@ com_mdump(wordlist *wl) return; } +/* dump circuit matrix RHS to stdout or file */ void com_rdump(wordlist *wl) { @@ -188,10 +187,10 @@ com_rdump(wordlist *wl) if ((ckt->CKTmatrix) && (ckt->CKTrhs)) if (wl == NULL) - SMPprintRHS( ckt->CKTmatrix , NULL, ckt->CKTrhs, ckt->CKTirhs); + SMPprintRHS(ckt->CKTmatrix , NULL, ckt->CKTrhs, ckt->CKTirhs); else { s = cp_unquote(wl->wl_word); - SMPprintRHS( ckt->CKTmatrix , s, ckt->CKTrhs, ckt->CKTirhs); + SMPprintRHS(ckt->CKTmatrix , s, ckt->CKTrhs, ckt->CKTirhs); } else fprintf(cp_err, "Error: no matrix or RHS available.\n"); diff --git a/src/frontend/commands.c b/src/frontend/commands.c index f4040f7f6..6bf240025 100644 --- a/src/frontend/commands.c +++ b/src/frontend/commands.c @@ -549,11 +549,11 @@ struct comm spcp_coms[] = { { 0, 0, 0, 0 }, E_DEFHMASK, 0, 0, NULL, ": Dump the current control structures." } , - { "mdump", com_mdump, FALSE, FALSE, + { "mdump", com_mdump, TRUE, FALSE, { 0, 0, 0, 0 }, E_DEFHMASK, 0, 1, NULL, "outfile: Dump the current matrix." } , - { "mrdump", com_rdump, FALSE, FALSE, + { "mrdump", com_rdump, TRUE, FALSE, { 0, 0, 0, 0 }, E_DEFHMASK, 0, 1, NULL, "outfile: Dump the current RHS to file." } , diff --git a/src/main.c b/src/main.c index 228d8b2a3..22e70922c 100644 --- a/src/main.c +++ b/src/main.c @@ -358,6 +358,24 @@ void com_loadsnap(wordlist *wl) { return; } void com_savesnap(wordlist *wl) { return; } #endif +void SMPprint( SMPmatrix *n1 , char *n2) +{ + NG_IGNORE(n1); + NG_IGNORE(n2); + + return; +}; + +void SMPprintRHS( SMPmatrix *n1, char *n2 , double* n3 , double* n4) +{ + NG_IGNORE(n1); + NG_IGNORE(n2); + NG_IGNORE(n3); + NG_IGNORE(n4); + + return; +}; + #endif /* SIMULATOR */ #ifndef SIMULATOR