Code cleaning and enabled maximum verbosity in debug code.

This commit is contained in:
pnenzi 2003-08-23 19:51:42 +00:00
parent 858f0442eb
commit fabfd87abd
4 changed files with 7 additions and 9 deletions

View File

@ -3,7 +3,6 @@ Copyright 1990 Regents of the University of California. All rights reserved.
**********/
#include "ngspice.h"
#include <stdio.h>
#include "pzdefs.h"
#include "smpdefs.h"
#include "cktdefs.h"

View File

@ -9,7 +9,6 @@ Copyright 1990 Regents of the University of California. All rights reserved.
*/
#include "ngspice.h"
#include <stdio.h>
#include "smpdefs.h"
#include "cktdefs.h"
#include "devdefs.h"

View File

@ -17,7 +17,7 @@ Copyright 1990 Regents of the University of California. All rights reserved.
#ifdef PZDEBUG
# ifndef notdef
# define DEBUG(N) if (Debug >= (unsigned) (N))
static unsigned int Debug = 1;
static unsigned int Debug = 3;
# else
# define DEBUG(N) if (0)
# endif
@ -719,12 +719,13 @@ CKTpzRunTrial(CKTcircuit *ckt, PZtrial **new_trialp, PZtrial **set)
else {
/* PZnumswaps is either 0 or 1 */
new_trial->f_raw.real *= ((PZAN *) ckt->CKTcurJob)->PZnumswaps;
new_trial->f_raw.imag *= ((PZAN *) ckt->CKTcurJob)->PZnumswaps;
/*
new_trial->f_raw.real *= ((PZAN *) ckt->CKTcurJob)->PZnumswaps;
new_trial->f_raw.imag *= ((PZAN *) ckt->CKTcurJob)->PZnumswaps;
#ifdef PZDEBUG
printf("SMP Det: (%g,%g)^%d\n", new_trial->f_raw.real,
new_trial->f_raw.imag, new_trial->mag_raw);
*/
#endif
new_trial->f_def.real = new_trial->f_raw.real;
new_trial->f_def.imag = new_trial->f_raw.imag;

View File

@ -3,7 +3,6 @@ Copyright 1990 Regents of the University of California. All rights reserved.
**********/
#include "ngspice.h"
#include <stdio.h>
#include "complex.h"
#include "cktdefs.h"
#include "smpdefs.h"
@ -190,7 +189,7 @@ PZpost(CKTcircuit *ckt)
outData.v.numValue = pzan->PZnPoles + pzan->PZnZeros;
outData.v.vec.cVec = out_list;
(*SPfrontEnd->OUTpData)(pzPlotPtr, (IFvalue *) 0, &outData);
(*SPfrontEnd->OUTpData)(pzPlotPtr, (IFvalue *) 0, &outData);
(*(SPfrontEnd->OUTendPlot))(pzPlotPtr);
return(OK);