0ec10e2e24
Applied several patches from this website: http://newton.ex.ac.uk/teaching/CDHW/Electronics2/userguide/secD.html specifically fixes for: - Where command causes crashes - Recognition of scale factors in arbitrary source - Current Controlled Switch in subckt, parsing error - Noise analysis bug - Save segmentation faults - BSIM1 model xpart parameter random - Tran analysis default TSTEP PR: ports/143727 Submitted by: "Pedro F. Giffuni" <giffunip@tutopia.com>
14 lines
654 B
Text
14 lines
654 B
Text
--- src/lib/ckt/traninit.c.orig 2010-02-09 23:52:59.000000000 +0000
|
|
+++ src/lib/ckt/traninit.c 2010-02-09 23:57:48.000000000 +0000
|
|
@@ -22,7 +22,10 @@
|
|
ckt->CKTinitTime = ((TRANan*)job)->TRANinitTime;
|
|
ckt->CKTmaxStep = ((TRANan*)job)->TRANmaxStep;
|
|
if(ckt->CKTmaxStep == 0) {
|
|
- ckt->CKTmaxStep = (ckt->CKTfinalTime-ckt->CKTinitTime)/50;
|
|
+ if ( ckt->CKTstep < (ckt->CKTfinalTime - ckt->CKTinitTime)/50.0) {
|
|
+ ckt->CKTmaxStep = ckt->CKTstep; }
|
|
+ else
|
|
+ { ckt->CKTmaxStep = (ckt->CKTfinalTime - ckt->CKTinitTime)/50.0; }
|
|
}
|
|
ckt->CKTdelmin = 1e-9*ckt->CKTmaxStep; /* XXX */
|
|
ckt->CKTmode = ((TRANan*)job)->TRANmode;
|