Browse Source

dummy functions

h_vogt 14 years ago
parent
commit
80a039983e
  1. 5
      ChangeLog
  2. 5
      src/frontend/com_cdump.c
  3. 4
      src/frontend/commands.c
  4. 18
      src/main.c

5
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,

5
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 <stdio.h>
#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)
{
@ -173,6 +171,7 @@ com_mdump(wordlist *wl)
return;
}
/* dump circuit matrix RHS to stdout or file */
void
com_rdump(wordlist *wl)
{

4
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." } ,

18
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

Loading…
Cancel
Save