From 7ec7495457249b2ddf2118466e3b08eaf0ad27cc Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sat, 19 Sep 2009 14:16:04 +0000 Subject: [PATCH] tran setup info, cleanup --- ChangeLog | 1 + src/frontend/inp.c | 6 ------ src/frontend/inpcom.c | 11 ----------- src/spicelib/analysis/dctran.c | 5 ++++- 4 files changed, 5 insertions(+), 18 deletions(-) diff --git a/ChangeLog b/ChangeLog index 356b4d6b7..e59589f99 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ * fteext.h, inpcom.c, inp.c, options.c, winmain.c: variable ngdebug added, sets ft_ngdebug, used for additional debug info printing + * dctran.c: setup info added 2009-09-16 Holger Vogt * inpcom.c: .global was diabled, reinstated diff --git a/src/frontend/inp.c b/src/frontend/inp.c index 55fdff9e0..9ca06457d 100644 --- a/src/frontend/inp.c +++ b/src/frontend/inp.c @@ -56,12 +56,6 @@ void line_free_x(struct line * deck, bool recurse); void SetAnalyse( char * Analyse, int Percent); #endif -/* uncomment this line for getting deck output after all - manipulations into debug-out2.txt. - Used to check numpram substitution, compare to debug.out.txt - retrieved from inpcom.c, fcn inp_readall()*/ -/* #define OUTDECK */ - /* Do a listing. Use is listing [expanded] [logical] [physical] [deck] */ void com_listing(wordlist *wl) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 6c1f90b06..9e298a6bb 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -30,13 +30,6 @@ Author: 1985 Wayne A. Christopher * space are also allowed. */ -/* - * SJB 22 May 2001 - * Fixed memory leaks in inp_readall() when first(?) line of input begins with a '@'. - * Fixed memory leaks in inp_readall() when .include lines have errors - * Fixed crash where a NULL pointer gets freed in inp_readall() - */ - #include "ngspice.h" #ifdef HAVE_LIBGEN_H /* dirname */ @@ -71,10 +64,6 @@ Author: 1985 Wayne A. Christopher /* SJB - Uncomment this line for debug tracing */ /*#define TRACE*/ -/* uncomment this line for getting deck output after all - manipulations into debug-out.txt */ -/* #define OUTDECK */ - #ifdef HAS_WINDOWS void winmessage(char* new_msg); #endif diff --git a/src/spicelib/analysis/dctran.c b/src/spicelib/analysis/dctran.c index fb8de5bd6..2c8671919 100644 --- a/src/spicelib/analysis/dctran.c +++ b/src/spicelib/analysis/dctran.c @@ -529,7 +529,10 @@ resume: } #endif #ifdef HAS_WINDOWS - SetAnalyse( "tran", (int)((ckt->CKTtime * 1000.) / ckt->CKTfinalTime)); + if (ckt->CKTtime == 0.) + SetAnalyse( "tran init", 0); + else + SetAnalyse( "tran", (int)((ckt->CKTtime * 1000.) / ckt->CKTfinalTime)); #endif ckt->CKTdelta = MIN(ckt->CKTdelta,ckt->CKTmaxStep);