From 5266a7c4bc1b8a1d7a863bb371bf348a083e06cd Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 14 Jan 2024 11:16:45 +0100 Subject: [PATCH] If there is a successful step, but the goal is not yet reached, don't start with the minimum value of 1.00005, as this may last forever. Restart with 3. --- src/spicelib/analysis/cktop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spicelib/analysis/cktop.c b/src/spicelib/analysis/cktop.c index 06983ff6e..ccc1efad9 100644 --- a/src/spicelib/analysis/cktop.c +++ b/src/spicelib/analysis/cktop.c @@ -409,7 +409,7 @@ new_gmin(CKTcircuit* ckt, long int firstmode, } if (iters > (3 * ckt->CKTdcTrcvMaxIter / 4)) - factor = MAX(sqrt(factor), 1.00005); + factor = MAX(sqrt(factor), 3); OldGmin = ckt->CKTgmin;