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
This commit is contained in:
parent
f6257eba84
commit
4f53f51ad9
|
|
@ -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); }
|
||||
|
|
|
|||
Loading…
Reference in New Issue