From 4f53f51ad934d618fc7023d2695ba8a1c2fe09cd Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 14 May 2017 20:56:30 +0200 Subject: [PATCH] ngspiceMODULEdefs.h.xml, disable EXIT_IF_ISNAN() don't exit() on NaN a NaN is not necessairily a desaster, might be merely a sign for non-convergence, which still might be overcome in another try. The bsim6 testbench case inverter_transient.sp was unnecessairily aborted do to NaN's --- .../devices/adms/admst/ngspiceMODULEdefs.h.xml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/spicelib/devices/adms/admst/ngspiceMODULEdefs.h.xml b/src/spicelib/devices/adms/admst/ngspiceMODULEdefs.h.xml index 4f505a8dd..28e8ced0b 100644 --- a/src/spicelib/devices/adms/admst/ngspiceMODULEdefs.h.xml +++ b/src/spicelib/devices/adms/admst/ngspiceMODULEdefs.h.xml @@ -89,19 +89,7 @@ #endif #define EXIT_IF_ISNAN(var) \\ -if(isnan((double) var)) \\ { \\ - printf("%%s:%%i:bug:isnan:"#var"\\n",__FILE__,__LINE__); \\ - printf("Please send this message to laurent.lemaitre@freescale.com\\n"); \\ - NGSPICE_DEBUG \\ - exit(1); /*__asm__ __volatile__ ("int \$03");*/ \\ -} \\ -if(isinf((double) var)) \\ -{ \\ - printf("%%s:%%i:bug:isinf:"#var"\\n",__FILE__,__LINE__); \\ - printf("Please send this message to laurent.lemaitre@freescale.com\\n"); \\ - NGSPICE_DEBUG \\ - exit(1); /*__asm__ __volatile__ ("int \$03");*/ \\ } static inline double max(double x,double y) { return ((x)>(y))?(x):(y); }