Browse Source

bug fix, broken insert at the front of CKTbreaks[]

rlar 15 years ago
parent
commit
70b7ef1bc1
  1. 6
      ChangeLog
  2. 2
      src/spicelib/analysis/cktsetbk.c

6
ChangeLog

@ -1,9 +1,13 @@
2011-08-04 Robert Larice
* src/spicelib/analysis/cktsetbk.c :
bug fix, broken insert at the front of CKTbreaks[]
2011-08-03 Holger Vogt 2011-08-03 Holger Vogt
* ivars.c update for LINUX * ivars.c update for LINUX
* tclspice.c, nghelp.c, spiced.c: ivars(NULL) * tclspice.c, nghelp.c, spiced.c: ivars(NULL)
* main.c: reference to memory leak checker for Windows removed * main.c: reference to memory leak checker for Windows removed
* visualc/vngspice.sln, visualc\vngspice.vcproj: 32 and 64 bit * visualc/vngspice.sln, visualc\vngspice.vcproj: 32 and 64 bit
2011-07-30 Dietmar Warning 2011-07-30 Dietmar Warning
* adms/ekv/admsva/ekv.va: semicolon after macro expl was wrong * adms/ekv/admsva/ekv.va: semicolon after macro expl was wrong
* adms/mextram/admsva: update va code from version 504.7 to 504.9.1 * adms/mextram/admsva: update va code from version 504.7 to 504.9.1

2
src/spicelib/analysis/cktsetbk.c

@ -44,7 +44,7 @@ CKTsetBreak(CKTcircuit *ckt, double time)
*(ckt->CKTbreaks+i) = time; *(ckt->CKTbreaks+i) = time;
return(OK); return(OK);
} }
if(time-*(ckt->CKTbreaks+i-1) <= ckt->CKTminBreak) {
if(i>0 && time-*(ckt->CKTbreaks+i-1) <= ckt->CKTminBreak) {
/* very close together, but after, so skip */ /* very close together, but after, so skip */
#ifdef TRACE_BREAKPOINT #ifdef TRACE_BREAKPOINT
printf("[t:%e] \t %e skipped\n", ckt->CKTtime, time); printf("[t:%e] \t %e skipped\n", ckt->CKTtime, time);

Loading…
Cancel
Save