From fd36eb552f8863bbedd6f83d508107fa048e9443 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 24 May 2020 15:20:34 +0200 Subject: [PATCH] set stepsize --- src/spicelib/analysis/optran.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/spicelib/analysis/optran.c b/src/spicelib/analysis/optran.c index a778bb068..540350338 100644 --- a/src/spicelib/analysis/optran.c +++ b/src/spicelib/analysis/optran.c @@ -223,7 +223,7 @@ OPtran(CKTcircuit *ckt) int type = ckt->CKTcurJob->JOBtype; SPfrontEnd->IFerrorf(ERR_INFO, "Transient op started"); - +#if 0 /* Set the final time */ /* If we are in transient simulation */ if (type == 4 && ckt->CKTstep > 0.) @@ -238,7 +238,9 @@ OPtran(CKTcircuit *ckt) opfinaltime = 0.1 / nojob->NstartFreq; ckt->CKTstep = opfinaltime / 1000.; } - +#else + ckt->CKTstep = opstepsize; +#endif delta=MIN(opfinaltime/100,ckt->CKTstep)/10; /* begin LTRA code addition */