Corrected errors I made in adding tclspice code.
This commit is contained in:
parent
b15349b847
commit
d154d16449
|
|
@ -30,7 +30,7 @@ Author: Jim Groves
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include "spice.h"
|
#include "ngspice.h"
|
||||||
#include "cpdefs.h"
|
#include "cpdefs.h"
|
||||||
#include "graph.h"
|
#include "graph.h"
|
||||||
#include "ftedbgra.h"
|
#include "ftedbgra.h"
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,6 @@ static bool getSpecial(dataDesc *desc, runDesc *run, IFvalue *val);
|
||||||
static void freeRun(runDesc *run);
|
static void freeRun(runDesc *run);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#define DOUBLE_PRECISION 15
|
#define DOUBLE_PRECISION 15
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -79,7 +78,6 @@ int
|
||||||
OUTpBeginPlot(void *circuitPtr, void *analysisPtr, IFuid analName, IFuid refName, int refType, int numNames, IFuid *dataNames, int dataType, void **plotPtr)
|
OUTpBeginPlot(void *circuitPtr, void *analysisPtr, IFuid analName, IFuid refName, int refType, int numNames, IFuid *dataNames, int dataType, void **plotPtr)
|
||||||
{
|
{
|
||||||
char *name;
|
char *name;
|
||||||
|
|
||||||
#ifdef PARALLEL_ARCH
|
#ifdef PARALLEL_ARCH
|
||||||
if (ARCHme != 0) return(OK);
|
if (ARCHme != 0) return(OK);
|
||||||
#endif /* PARALLEL_ARCH */
|
#endif /* PARALLEL_ARCH */
|
||||||
|
|
@ -122,7 +120,6 @@ beginPlot(void *analysisPtr, void *circuitPtr, char *cktName, char *analName, ch
|
||||||
bool saveall = TRUE;
|
bool saveall = TRUE;
|
||||||
bool savealli = FALSE;
|
bool savealli = FALSE;
|
||||||
char *an_name;
|
char *an_name;
|
||||||
|
|
||||||
/*to resume a run saj
|
/*to resume a run saj
|
||||||
*All it does is reassign the file pointer and return (requires *runp to be NULL if this is not needed)
|
*All it does is reassign the file pointer and return (requires *runp to be NULL if this is not needed)
|
||||||
*/
|
*/
|
||||||
|
|
@ -133,6 +130,7 @@ beginPlot(void *analysisPtr, void *circuitPtr, char *cktName, char *analName, ch
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
/*end saj*/
|
/*end saj*/
|
||||||
|
|
||||||
/* Check to see if we want to print informational data. */
|
/* Check to see if we want to print informational data. */
|
||||||
if (cp_getvar("printinfo", VT_BOOL, (char *) &printinfo))
|
if (cp_getvar("printinfo", VT_BOOL, (char *) &printinfo))
|
||||||
fprintf(cp_err, "(debug printing enabled)\n");
|
fprintf(cp_err, "(debug printing enabled)\n");
|
||||||
|
|
@ -355,7 +353,7 @@ beginPlot(void *analysisPtr, void *circuitPtr, char *cktName, char *analName, ch
|
||||||
if (refName)
|
if (refName)
|
||||||
run->runPlot->pl_ndims = 1;
|
run->runPlot->pl_ndims = 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return (OK);
|
return (OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1098,7 +1096,9 @@ OUTstopnow(void)
|
||||||
static struct mesg {
|
static struct mesg {
|
||||||
char *string;
|
char *string;
|
||||||
long flag;
|
long flag;
|
||||||
} msgs[] = {
|
}
|
||||||
|
|
||||||
|
msgs[] = {
|
||||||
{ "Warning", ERR_WARNING } ,
|
{ "Warning", ERR_WARNING } ,
|
||||||
{ "Fatal error", ERR_FATAL } ,
|
{ "Fatal error", ERR_FATAL } ,
|
||||||
{ "Panic", ERR_PANIC } ,
|
{ "Panic", ERR_PANIC } ,
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ Author: 1985 Wayne A. Christopher, U. C. Berkeley CAD Group
|
||||||
* Routines for dealing with the vector database.
|
* Routines for dealing with the vector database.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <spice.h>
|
#include <ngspice.h>
|
||||||
#include <cpdefs.h>
|
#include <cpdefs.h>
|
||||||
#include <ftedefs.h>
|
#include <ftedefs.h>
|
||||||
#include <dvec.h>
|
#include <dvec.h>
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
#include <misc/getopt.h>
|
#include <misc/getopt.h>
|
||||||
#include <frontend/resource.h>
|
#include <frontend/resource.h>
|
||||||
#include <frontend/variable.h>
|
#include <frontend/variable.h>
|
||||||
#include "frontend/display.h" /* va */
|
//#include "frontend/display.h" /* va */
|
||||||
|
|
||||||
/* saj xspice headers */
|
/* saj xspice headers */
|
||||||
#ifdef XSPICE
|
#ifdef XSPICE
|
||||||
|
|
@ -60,7 +60,7 @@ bool ft_intrpt = FALSE; /* Set by the (void) signal handlers. */
|
||||||
bool ft_setflag = FALSE; /* Don't abort after an interrupt. */
|
bool ft_setflag = FALSE; /* Don't abort after an interrupt. */
|
||||||
char *ft_rawfile = "rawspice.raw";
|
char *ft_rawfile = "rawspice.raw";
|
||||||
|
|
||||||
bool oflag = FALSE; /* Output über redefinierte Funktionen */
|
bool oflag = FALSE; /* Output über redefinierte Funktionen */
|
||||||
FILE *flogp; // hvogt 15.12.2001
|
FILE *flogp; // hvogt 15.12.2001
|
||||||
|
|
||||||
/* Frontend and circuit options */
|
/* Frontend and circuit options */
|
||||||
|
|
@ -480,7 +480,7 @@ main(int argc, char **argv)
|
||||||
shutdown (EXIT_BAD);
|
shutdown (EXIT_BAD);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
// *** Log-File öffnen *******
|
// *** Log-File öffnen *******
|
||||||
if (!(flogp = fopen(buf, "w"))) {
|
if (!(flogp = fopen(buf, "w"))) {
|
||||||
perror(buf);
|
perror(buf);
|
||||||
shutdown(EXIT_BAD);
|
shutdown(EXIT_BAD);
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ Modified 2001: AlansFixes
|
||||||
#include "evtproto.h"
|
#include "evtproto.h"
|
||||||
#include "ipctiein.h"
|
#include "ipctiein.h"
|
||||||
/* gtri - end - wbk */
|
/* gtri - end - wbk */
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAS_WINDOWS
|
#ifdef HAS_WINDOWS
|
||||||
void SetAnalyse( char * Analyse, int Percent);
|
void SetAnalyse( char * Analyse, int Percent);
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ Modified: 2000 AlansFixes
|
||||||
|
|
||||||
#ifdef CLUSTER
|
#ifdef CLUSTER
|
||||||
#include "cluster.h"
|
#include "cluster.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAS_WINDOWS /* hvogt 10.03.99, nach W. Mues */
|
#ifdef HAS_WINDOWS /* hvogt 10.03.99, nach W. Mues */
|
||||||
void SetAnalyse( char * Analyse, int Percent);
|
void SetAnalyse( char * Analyse, int Percent);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue