From 673a14afdb07362089a6c11554446e9933af4142 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Thu, 2 Apr 2020 20:00:39 +0200 Subject: [PATCH] more conservative op calculation: start with new gmin, if this fails, fall back to dynamic gmin, then source stepping --- src/spicelib/analysis/cktop.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/spicelib/analysis/cktop.c b/src/spicelib/analysis/cktop.c index 727ffe977..c3c27791c 100644 --- a/src/spicelib/analysis/cktop.c +++ b/src/spicelib/analysis/cktop.c @@ -54,11 +54,17 @@ CKTop (CKTcircuit *ckt, long int firstmode, long int continuemode, if (ckt->CKTnumGminSteps >= 1) { if (ckt->CKTnumGminSteps == 1) { + /* only the old gmin */ if (cp_getvar("dyngmin", CP_BOOL, NULL, 0)) { converged = dynamic_gmin(ckt, firstmode, continuemode, iterlim); } + /* first the new gmin, then the old gmin */ else { converged = new_gmin(ckt, firstmode, continuemode, iterlim); +/* if(converged != 0) { + converged = dynamic_gmin(ckt, firstmode, continuemode, iterlim); + }*/ + } } else {