Francesco Lannutti
f8ad3e6f70
Fixed the SMPcSolve routine for KLU
2023-07-17 12:36:05 +02:00
Francesco Lannutti
df9439ebe4
Enhanced KLU to avoid loosing computation cycles. The speedup is quite low, though: ~1%
2023-07-17 12:35:45 +02:00
Francesco Lannutti
a1dc2e7b02
fix the list of supported devices
2023-07-17 12:35:21 +02:00
rlar
6f6febed80
Added CPL Model to KLU
2023-07-17 12:34:52 +02:00
Francesco Lannutti
2546e757b7
Added HISIMHV2 Model to KLU
2023-07-17 12:34:32 +02:00
Francesco Lannutti
abcad48c3e
Added ASRC Model to KLU
2023-07-17 12:34:19 +02:00
Francesco Lannutti
2ab73076a8
KLU Integration from scratch #7 , devices, bsim4/ (which is bsim4v8)
2023-07-17 12:34:02 +02:00
rlar
5599ea601e
KLU Integration from scratch #6 , devices, bsim4v7/
2023-07-17 12:33:51 +02:00
Francesco Lannutti
bf79b48893
Fixed the KLU package to let it correctly compile in libngspice.so
2023-07-17 12:33:38 +02:00
Francesco Lannutti
8d6734a79b
KLU Integration from scratch #5 , devices
2023-07-17 12:33:15 +02:00
Francesco Lannutti
60c8843bc1
KLU Integration from scratch #4 , changed files
2023-07-17 12:33:05 +02:00
Francesco Lannutti
c5f881ae29
KLU Integration from scratch #1 , new files
2023-07-17 12:32:45 +02:00
Francesco Lannutti
8f768166b1
move include files to src/include/ngspice/
2023-07-17 12:32:15 +02:00
Francesco Lannutti
848246f7a1
fix include file directories (will be in src/include/ngspice/)
2023-07-17 12:31:53 +02:00
rlar
cfdc0e9866
delete-trailing-whitespace
2023-07-17 12:31:36 +02:00
Francesco Lannutti
1a957b6a3f
incorporate KLU source files from SuiteSparse-3.7.0.tar.gz
2023-07-17 12:31:09 +02:00
rlar
a431809604
SuiteSparse.org, recipe for incorporation of SuiteSparse-3.7.0.tar.gz
2023-07-17 12:30:44 +02:00
Francesco Lannutti
8b8c3418a4
KLU Integration from scratch #1 , examples/klu/Circuits
2023-07-17 12:29:53 +02:00
Brian Taylor
4d8b105b86
Simplify expression nesting depth.
2023-07-15 11:34:09 +02:00
Brian Taylor
251f1e1984
The channel data needs to be freed for some 2D Cider devices. This shows up with some of the examples/cider/parallel circuits.
2023-07-15 11:33:52 +02:00
Holger Vogt
d74e43f0f0
Move extern declaration to the top, out of any function.
...
Thus remove VC2022 compiler warnings.
2023-07-15 11:33:11 +02:00
Brian Taylor
159e185bfe
Tidy up sp_shutdown with Cider.
2023-07-15 11:32:52 +02:00
Brian Taylor
51b361bbf0
When Cider models are present, a normal batch mode sp_shutdown (for example, ngspice -b cmosinv.cir) will call com_quit(NULL). This cleans up so that valgrind will find no leaks in Cider devices after sp_shutdown. To disable this feature, set the environment variable CIDER_COM_QUIT="OFF". Even though it really does not matter that Cider memory is cleared just before exit, it makes it cleaner for valgrind checks.
2023-07-15 11:32:37 +02:00
Holger Vogt
ba2842b55a
Prevent a crash if p==NULL (due to buggy input)
2023-07-15 11:32:26 +02:00
dwarning
794a37339a
ifft: in case input array is smaller then output array - fill in the rest with zero to prevent uninitialzed plot variables
2023-07-15 11:32:11 +02:00
dwarning
42b803e5c2
same array size for in- and output in inverse fft function from fftw3
2023-07-15 11:31:59 +02:00
Brian Taylor
25c1c971e5
Fix the Cider memory leaks from setupContacts. TWOdestroy needed to free the contact nodes.
2023-07-15 11:31:48 +02:00
Brian Taylor
f39f89ea9b
Add DEVmodDelete functions to reduce memoory leaks in Cider models. The model memory was not freed during remcirc or quit. In the future, some of the code duplication could be refactored. The cmosinv.cir is now down to just 1 memory leak.
2023-07-15 11:31:38 +02:00
Brian Taylor
db8ac72199
The CONTACT statement does not apply to 1D devices.
2023-07-15 11:31:24 +02:00
Brian Taylor
844ea11a63
Fix some more memory leaks in the CIDER 1D and 2D destroy functions.
2023-07-15 11:31:14 +02:00
Giles Atkinson
a60b7f5630
Fix sluggish output of the "Reference value" progress indicator on Linux
...
after it switched from stderr to stdout (28a3413 ). Add fflush().
2023-07-15 11:31:03 +02:00
Giles Atkinson
ac6487932b
Make the returned status of the "shell" command available as interpreter
...
variable "shellstatus". Also change the default shell to /bin/sh
as csh is now rare.
2023-07-15 11:30:48 +02:00
Giles Atkinson
1c1a53bac8
Set default colours for the button box in the X11 plot window that
...
match the default dark background of the plot.
2023-07-15 11:30:29 +02:00
Brian Taylor
80e44a32d6
Add missing FREE to reduce some of the Cider memory leaks.
2023-07-15 11:30:02 +02:00
Giles Atkinson
5f6a6a27d8
Further fix for PWL bugs introduced by 9c71db3 (Fix for Bug #607 ) and
...
partially fixed by 79c69e0 and 9c75367 . This also fixes Bug #468 -
"Bugs in src/spicelib/devices/vsrc/vsrcacct.c for PWL source."
2023-07-15 11:29:51 +02:00
Giles Atkinson
5114d6c2f4
Add an option to the iplot command: -d sets the number of simulation
...
steps before the window is shown. The value can be chosen to
limit rapid resizing when starting and that is used in the PLL examples.
2023-07-15 11:29:32 +02:00
Giles Atkinson
e5a931e537
Improve commands for vector scales. "setscale" can now change
...
or clear the scale of an individual vector and "compose" can
explicitly create a vector from XSPICE event node history.
2023-07-15 11:28:48 +02:00
Holger Vogt
d3dccc68b2
Error print output consistenly only to stderr.
...
Replace out_printf by fprint(stderr, ...
2023-07-15 11:28:25 +02:00
Holger Vogt
87f0db6f50
Prevent crash when ControlledExit* is not initialized
...
in ngspice shared library.
2023-07-15 11:28:07 +02:00
Holger Vogt
b0f2ab8764
Fix bug 637
...
Prevent crash when external current source is used.
2023-07-15 11:27:43 +02:00
Holger Vogt
90d8f7f34f
Prevent crash if EXTERNAL voltage source is used
...
Fixes
98763c0ad ("Note: ix: dc value used for op instead of transient time=0 value Former warning message or note only issued when dc value and value at transient time=0 differ.", 2022-09-20)
2023-07-15 11:27:32 +02:00
Holger Vogt
4421d95379
improve comment
2023-07-15 11:27:14 +02:00
Holger Vogt
a28784d6d7
Prevent crash if *line == NULL
2023-07-15 11:26:52 +02:00
Holger Vogt
53b72a7693
Skip title line when resorting .params, .meas, .temp
2023-07-15 11:25:27 +02:00
Giles Atkinson
762b131bb3
Fix Bug #635 - "Starting ngspice with HOME env variable unset causes segfault".
2023-07-15 11:22:13 +02:00
Holger Vogt
eda9cadbed
The 'plot' command is not available in batch mode.
...
Issue a warning and ignore it.
2023-07-15 11:22:00 +02:00
Holger Vogt
0e6b785728
Remove the error message when a simulation has been started via the .control section.
2023-07-15 11:21:40 +02:00
Holger Vogt
f5091bdc2d
Make the error message a little more reasonable.
...
Unfortunately the current setup does not easily allow naming
the offending command.
2023-07-15 11:21:11 +02:00
Holger Vogt
c7ebb7aabb
Error message up to now was strictly for command line interactive use only.
...
Improve error message when parsing .ac lines.
2023-07-15 11:20:41 +02:00
Holger Vogt
d46cd894cc
Prevent crash if s == NULL
2023-07-15 11:20:09 +02:00