From 07a662b271be1a0e6a27d8e577de4c44e237bf84 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sat, 18 May 2013 14:57:17 +0200 Subject: [PATCH] traninit.c, cleanup indentation --- src/spicelib/analysis/traninit.c | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/src/spicelib/analysis/traninit.c b/src/spicelib/analysis/traninit.c index cfca9426a..b25aa6cf4 100644 --- a/src/spicelib/analysis/traninit.c +++ b/src/spicelib/analysis/traninit.c @@ -21,25 +21,16 @@ int TRANinit(CKTcircuit *ckt, JOB *anal) ckt->CKTstep = job->TRANstep; ckt->CKTinitTime = job->TRANinitTime; ckt->CKTmaxStep = job->TRANmaxStep; - - - - /* The following code has been taken from macspice 3f4 (A. Wilson) - in the file traninit.new.c - Seems interesting */ - if(ckt->CKTmaxStep == 0) - { - if (ckt->CKTstep < ( ckt->CKTfinalTime - ckt->CKTinitTime )/50.0) - { - ckt->CKTmaxStep = ckt->CKTstep; - } - else - { - ckt->CKTmaxStep = ( ckt->CKTfinalTime - ckt->CKTinitTime )/50.0; - } -} - - + /* The following code has been taken from macspice 3f4 (A. Wilson) + in the file traninit.new.c - Seems interesting */ + if(ckt->CKTmaxStep == 0) { + 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-11*ckt->CKTmaxStep; /* XXX */ ckt->CKTmode = job->TRANmode;