~kicad/+git/ngspice-mirror-sourceforge:fix-niiter-2

Last commit made on 2018-02-07
Get this branch:
git clone -b fix-niiter-2 https://git.launchpad.net/~kicad/+git/ngspice-mirror-sourceforge
Members of KiCad can upload to this branch. Log in for directions.

Branch merges

Branch information

Name:
fix-niiter-2
Repository:
lp:~kicad/+git/ngspice-mirror-sourceforge

Recent commits

e067a23... by Francesco Lannutti <email address hidden>

Memory allocation fix for OldState0

42d749e... by Francesco Lannutti <email address hidden>

Additional fix proposal for CKTnoncon in NIiter

acb7a6d... by rlar <rlar>

a new variant of a fix, don't accept solution if previous one was marked CKTnoncon

this is only a "sketch" for the test-poly-3.cir debugging session.
there are more CKTnoncon in niiter, and all need to be studied/ponderd
  with respect to this "fix"

cf6625a... by rlar <rlar>

debug printf, which expose the second bogus niiter()

-----------------
CKTload
MIFload: not yet valid, setting CKTnoncon
niiter[4], solving
niiter[4], skipping NIconvTest

-----------------
CKTload
niiter[5], solving
niiter[5], NIconvTest->0
niiter[5], accepted and return

in niiter[4] the matrix stamp and rhs is not yet valid,
  a solution is produced nontheless

in niiter[5] matrix stamp and rhs are valid, for the first time,
  a solution is produce,
  in niconvtest this first "real" solution is compared to the previous
    "bugos"/"invalid" solution, and by mere accidendence
    happens to compare well
  thus the new solution, is accepted, even though the descicion was
    based on comparsion with an arbitrary vector

b668f76... by rlar <rlar>

test-poly-3.cir, which produces erronous values

560cb6e... by Holger Vogt

plotting/grid.c, bug fix, avoid string buffer overflow

Prevent a crash of example/FFT_test.cir.
Buffer 'buf' in function drawlingrid() has been too small.
Increase 'buf' size, and add some protection.

The example file examples/plot/test-small-plot.cir
shows the limits of plotting:
  difference in two numbers at digit 14 is plotted well.
                            at digit 15 is plotted with bugs.
                            at digit 16 is reduced to integer.

consider compiling with
  -O1 -D_FORTIFY_SOURCE=2
for gcc, and
  /GS
for visual studio.

c892b2d... by rlar <rlar>

analysis/acan.c, check for valid startfreq

an 'ac dec' or 'ac oct' can not have a startfreq <= 0

c5d8ad7... by rlar <rlar>

analysis/acsetp.c, ac analysis, allow frequency=0

57a0a5d... by rlar <rlar>

devices/bjt/bjttemp.c, bug fix, capacity temperature dependency

Fix a very old bug in the implementation of the
  gummel-poon model formulas for the junction capacities.
  (already in spice3f4)
For unknown reasons, the same formulas in the
  diode mos1 mos2 mos6 jfet models
have been implemented correctly right from the beginning,
the typo was bjt specific.

Many Thanks for the concise and precise Bug Report
  provided by Schabo Rumanus on the ngspice-users mailing list
> To: <email address hidden>
> Subject: [Ngspice-users] Temperatursimulation von Sperrschichtkapazitäten

Many Thanks to Dietmar Warning for his thorough verification
  of this commit.

f0159cb... by rlar <rlar>

numparam/spicenum.c, stripbraces(), bug fix

overwriting SPICE_DSTRING `dstr_p' may invalidate `s'

This bug was injected with the introduction of SPICE_DSTRING in :
> commit 76feebbbfad30a449a182367a9aa2d732c6cd587
> Date: Thu Feb 25 21:43:03 2010 +0000
> various bug fixes