From db5e5b08eba2ea1e3950d71fb9324228fcf25418 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 22 Dec 2023 18:16:26 +0100 Subject: [PATCH] Don't switch display to "op", if called from a dc simulation. --- src/spicelib/analysis/cktop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/spicelib/analysis/cktop.c b/src/spicelib/analysis/cktop.c index 1b52c296b..06983ff6e 100644 --- a/src/spicelib/analysis/cktop.c +++ b/src/spicelib/analysis/cktop.c @@ -30,7 +30,8 @@ CKTop (CKTcircuit *ckt, long int firstmode, long int continuemode, int converged; #ifdef HAS_PROGREP - if (!ckt->CKTnoOpIter || ckt->CKTnumGminSteps >= 1 || ckt->CKTnumSrcSteps >= 1) + /* If this is called from dc simulation, don't set "op" */ + if (ckt->CKTcurJob->JOBtype != 2 && (!ckt->CKTnoOpIter || ckt->CKTnumGminSteps >= 1 || ckt->CKTnumSrcSteps >= 1)) SetAnalyse("op", 0); #endif