Commit Graph

9044 Commits

Author SHA1 Message Date
Brian Taylor a2ca37401b Merge branch 'pre-master' into bt_dev 2023-07-03 13:31:00 -07:00
dwarning 4c4a9c78ec ifft: in case input array is smaller then output array - fill in the rest with zero to prevent uninitialzed plot variables 2023-07-03 10:07:32 +02:00
dwarning e83fae11bc same array size for in- and output in inverse fft function from fftw3 2023-07-02 16:16:51 +02:00
Brian Taylor 40a89b16e6 Fix the Cider memory leaks from setupContacts. TWOdestroy needed to free the contact nodes. 2023-06-30 11:03:53 +02:00
Brian Taylor 92dcb76251 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-06-30 11:03:42 +02:00
Brian Taylor fe26418374 Fix the Cider memory leaks from setupContacts. TWOdestroy needed to free the contact nodes. 2023-06-29 17:43:34 -07:00
Brian Taylor ec895536a6 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-06-28 22:11:11 -07:00
Brian Taylor 61a2c168dd Merge branch 'pre-master' into bt_dev 2023-06-28 20:50:35 -07:00
Brian Taylor cbda9ab7b5 The CONTACT statement does not apply to 1D devices. 2023-06-25 21:25:26 +02:00
Brian Taylor 42a8bafd10 Fix some more memory leaks in the CIDER 1D and 2D destroy functions. 2023-06-25 21:24:57 +02:00
Brian Taylor b6ae618233 The CONTACT statement does not apply to 1D devices. 2023-06-25 08:42:31 -07:00
Brian Taylor 00740ea126 Fix some more memory leaks in the CIDER 1D and 2D destroy functions. 2023-06-24 18:25:29 -07:00
Brian Taylor 56362529ba Merge branch 'pre-master' into bt_dev 2023-06-24 17:34:02 -07:00
Giles Atkinson d4c4ac7937 Fix sluggish output of the "Reference value" progress indicator on Linux
after it switched from stderr to stdout (28a3413).  Add fflush().
2023-06-24 17:24:21 +02:00
Giles Atkinson b62c9b1ef3 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-06-24 17:24:15 +02:00
Giles Atkinson e0cc583669 Set default colours for the button box in the X11 plot window that
match the default dark background of the plot.
2023-06-24 17:24:09 +02:00
Brian Taylor 0f15c1ab96 Add missing FREE to reduce some of the Cider memory leaks. 2023-06-20 22:57:34 +02:00
Brian Taylor 1ffa456328 Add missing FREE to reduce some of the Cider memory leaks. 2023-06-20 11:34:07 -07:00
Brian Taylor 1c1ceb4d9d Merge branch 'pre-master' into bt_dev 2023-06-20 11:12:34 -07:00
Giles Atkinson 22b5a859d0 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-06-20 20:01:51 +02:00
Giles Atkinson 1a056f935c 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-06-20 20:01:41 +02:00
Giles Atkinson 8ce190e7d6 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-06-20 20:01:31 +02:00
Holger Vogt 64cbf224b5 Error print output consistenly only to stderr.
Replace out_printf by fprint(stderr, ...
2023-06-20 19:56:55 +02:00
Holger Vogt 3fd7bd2183 Prevent crash when ControlledExit* is not initialized
in ngspice shared library.
2023-06-18 10:32:01 +02:00
Holger Vogt 8d9695d7d6 Fix bug 637
Prevent crash when external current source is used.
2023-06-18 10:29:43 +02:00
Holger Vogt 82796a6fa6 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-06-14 15:34:45 +02:00
Holger Vogt 5761b71ecd improve comment 2023-06-13 20:06:27 +02:00
Holger Vogt a244e023c4 Prevent crash if *line == NULL 2023-06-13 20:05:49 +02:00
Holger Vogt 818bd19798 Revert "Prevent crash if *line == NULL"
This reverts commit b72f9516ac.
2023-06-13 20:02:27 +02:00
Holger Vogt 216e5cb58b Skip title line when resorting .params, .meas, .temp 2023-06-13 19:57:19 +02:00
Holger Vogt b72f9516ac Prevent crash if *line == NULL 2023-06-13 19:56:07 +02:00
Giles Atkinson 2740d9a79b Fix Bug #635 - "Starting ngspice with HOME env variable unset causes segfault". 2023-06-13 19:54:49 +02:00
Holger Vogt bda4a83dc6 Revert "Skip the title line when re-sorting parameters"
This reverts commit 72496da4c9.
2023-06-12 23:20:46 +02:00
Holger Vogt 630e800bd6 The 'plot' command is not available in batch mode.
Issue a warning and ignore it.
2023-06-09 16:31:04 +02:00
Holger Vogt 28f641b318 Remove the error message when a simulation has been started via the .control section. 2023-06-09 16:10:37 +02:00
Holger Vogt d76e7362e7 Make the error message a little more reasonable.
Unfortunately the current setup does not easily allow naming
the offending command.
2023-06-09 16:09:57 +02:00
Holger Vogt cdf66fac6b Error message up to now was strictly for command line interactive use only.
Improve error message when parsing .ac lines.
2023-06-09 14:45:43 +02:00
Holger Vogt 72496da4c9 Skip the title line when re-sorting parameters
and removing .meas statement.
2023-06-09 14:44:40 +02:00
Holger Vogt bf1dfa0127 Prevent crash if s == NULL 2023-06-07 16:25:24 +02:00
Brian Taylor 56272eb68c Merge branch 'pre-master' into bt_dev 2023-06-04 08:03:24 -07:00
Holger Vogt 5e73be130a Allow ';' also at the beginning of a line. 2023-06-04 14:53:38 +02:00
Holger Vogt a99caf504f No syntax check for title line 2023-06-04 14:36:27 +02:00
Holger Vogt 1ff095321c add comment 2023-06-04 14:36:03 +02:00
Holger Vogt 525d221325 Prevent crash if no or not enough coeffs are given.
r is then probably not the repeat coefficient.
2023-06-04 14:23:09 +02:00
Holger Vogt 6dc09e6592 During syntax check: v,i sources need two nodes,
and prevent crash upon buggy ac input.
2023-06-04 14:01:44 +02:00
Holger Vogt 1ddb1f58b4 Bail out if {...} or '...' are missing around RHS of the equation.
(...) may be possible, elsewhere additional {} are put around,
so we have {(...)}.
2023-06-04 10:36:21 +02:00
Holger Vogt 3a535f19db Add a control language function cvector, to create a complex vector.
Let vec1 = cvector(50)
will generate a complex vector, with the real part values
increasing from 0 to 49, the imaginary values are set to 0.
Useful in ac loops to store result data.
2023-06-04 09:46:13 +02:00
Holger Vogt 10e86d72d3 Prevent crash upon buggy user input (missing ] or >) 2023-06-03 17:09:10 +02:00
Holger Vogt a03369fc12 Improve error message 2023-06-03 15:48:06 +02:00
Holger Vogt 7de5fd276e CIDER: Plug some memory leak 2023-06-02 22:30:27 +02:00