don't CKTtrunc when we approach the projected switch point by more
than 100 * DBL_EPSILON * CKTtime
to make sure VSRC / ISRC has still room to produce values.
FIXME,
dctran.c might suffer from a similiar, non sw/csw related issue.
it might be necessairy to generally replace CKTdelmin by
MAX(CKTdelmin, HEADROOM * DBL_EPSILON * CKTtime)
> commit 0dae4607a01e2bbf93a925f5c37385ad9ce232f2
> Date: Wed Apr 25 18:28:20 2001 +0000
>
> Added a patch to csw and sw from Jon Engelbert dealing with negative hister
reorder enum values for "state" to simplify boolean expressions,
and to make the miss-use of a "double" as "enum" less disturbing.
This commit will cause ngspice to exit()
in certain not thought of cases.
See
> commit 0dae4607a01e2bbf93a925f5c37385ad9ce232f2
> Date: Wed Apr 25 18:28:20 2001 +0000
>
> Added a patch to csw and sw from Jon Engelbert dealing with negative histeresys
which changed "state" to range over {0,1,2,3}
spicelib/devices/{sw,csw}, #8/, cleanup, enums