Browse Source

tran setup info, cleanup

pre-master-46
h_vogt 17 years ago
parent
commit
7ec7495457
  1. 1
      ChangeLog
  2. 6
      src/frontend/inp.c
  3. 11
      src/frontend/inpcom.c
  4. 5
      src/spicelib/analysis/dctran.c

1
ChangeLog

@ -2,6 +2,7 @@
* fteext.h, inpcom.c, inp.c, options.c, winmain.c: * fteext.h, inpcom.c, inp.c, options.c, winmain.c:
variable ngdebug added, sets ft_ngdebug, variable ngdebug added, sets ft_ngdebug,
used for additional debug info printing used for additional debug info printing
* dctran.c: setup info added
2009-09-16 Holger Vogt 2009-09-16 Holger Vogt
* inpcom.c: .global was diabled, reinstated * inpcom.c: .global was diabled, reinstated

6
src/frontend/inp.c

@ -56,12 +56,6 @@ void line_free_x(struct line * deck, bool recurse);
void SetAnalyse( char * Analyse, int Percent); void SetAnalyse( char * Analyse, int Percent);
#endif #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] */ /* Do a listing. Use is listing [expanded] [logical] [physical] [deck] */
void void
com_listing(wordlist *wl) com_listing(wordlist *wl)

11
src/frontend/inpcom.c

@ -30,13 +30,6 @@ Author: 1985 Wayne A. Christopher
* space are also allowed. * 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" #include "ngspice.h"
#ifdef HAVE_LIBGEN_H /* dirname */ #ifdef HAVE_LIBGEN_H /* dirname */
@ -71,10 +64,6 @@ Author: 1985 Wayne A. Christopher
/* SJB - Uncomment this line for debug tracing */ /* SJB - Uncomment this line for debug tracing */
/*#define TRACE*/ /*#define TRACE*/
/* uncomment this line for getting deck output after all
manipulations into debug-out.txt */
/* #define OUTDECK */
#ifdef HAS_WINDOWS #ifdef HAS_WINDOWS
void winmessage(char* new_msg); void winmessage(char* new_msg);
#endif #endif

5
src/spicelib/analysis/dctran.c

@ -529,7 +529,10 @@ resume:
} }
#endif #endif
#ifdef HAS_WINDOWS #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 #endif
ckt->CKTdelta = ckt->CKTdelta =
MIN(ckt->CKTdelta,ckt->CKTmaxStep); MIN(ckt->CKTdelta,ckt->CKTmaxStep);

Loading…
Cancel
Save