From 7a646c0a12313b346de90b365673381f9e6729c9 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sat, 9 Sep 2023 18:38:09 +0200 Subject: [PATCH] If 'strict_errorhandling' is set, bail out if operating point is not found --- src/spicelib/analysis/cktop.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/spicelib/analysis/cktop.c b/src/spicelib/analysis/cktop.c index 1db078981..6bebb681a 100644 --- a/src/spicelib/analysis/cktop.c +++ b/src/spicelib/analysis/cktop.c @@ -10,6 +10,7 @@ Modified: 2005 Paolo Nenzi - Restructured #include "ngspice/devdefs.h" #include "ngspice/sperror.h" #include "ngspice/cpextern.h" +#include "ngspice/fteext.h" #ifdef XSPICE #include "ngspice/enh.h" @@ -108,6 +109,8 @@ CKTop (CKTcircuit *ckt, long int firstmode, long int continuemode, #endif fprintf(cp_err, "\nError: The operating point could not be simulated successfully.\n"); + if (ft_stricterror) + controlled_exit(1); fprintf(cp_err, " Any of the following steps may fail.!\n\n"); return converged;