dctran.c, bug fix `#235 When Using .TRAN analysis with UIC, ...'
add a breakpoint for UIC #235 When Using .TRAN analysis with UIC, unconnected pulse bug http://sourceforge.net/p/ngspice/bugs/235/
This commit is contained in:
parent
eb8ae7b2fb
commit
7387d59b1a
|
|
@ -507,7 +507,7 @@ resume:
|
||||||
if (ckt->CKTtime == 0.)
|
if (ckt->CKTtime == 0.)
|
||||||
SetAnalyse( "tran init", 0);
|
SetAnalyse( "tran init", 0);
|
||||||
else
|
else
|
||||||
SetAnalyse( "tran", (int)((ckt->CKTtime * 1000.) / ckt->CKTfinalTime) + 0.5);
|
SetAnalyse( "tran", (int)((ckt->CKTtime * 1000.) / ckt->CKTfinalTime + 0.5));
|
||||||
#endif
|
#endif
|
||||||
ckt->CKTdelta =
|
ckt->CKTdelta =
|
||||||
MIN(ckt->CKTdelta,ckt->CKTmaxStep);
|
MIN(ckt->CKTdelta,ckt->CKTmaxStep);
|
||||||
|
|
@ -545,6 +545,10 @@ resume:
|
||||||
ckt->CKTbreaks[1] - ckt->CKTbreaks[0]));
|
ckt->CKTbreaks[1] - ckt->CKTbreaks[0]));
|
||||||
|
|
||||||
if(firsttime) {
|
if(firsttime) {
|
||||||
|
/* set a breakpoint to reduce ringing of current in devices */
|
||||||
|
if (ckt->CKTmode & MODEUIC)
|
||||||
|
CKTsetBreak(ckt, ckt->CKTstep);
|
||||||
|
|
||||||
ckt->CKTdelta /= 10;
|
ckt->CKTdelta /= 10;
|
||||||
#ifdef STEPDEBUG
|
#ifdef STEPDEBUG
|
||||||
(void)printf("delta cut for initial timepoint\n");
|
(void)printf("delta cut for initial timepoint\n");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue