Holger Vogt
66cbac3f4e
Fixes a bug introduced by commit [4895a4]
...
Re-enables R with .model like
.model R_NOISELESS RES (TCE=0 T_ABS=-273.15)
R77 1 0 R_NOISELESS 100
2021-07-05 13:59:24 +02:00
dwarning
b1bf7ea0ad
Diode model with selfheating option
2021-07-05 13:58:51 +02:00
Holger Vogt
48acb10929
Remove compiler warnings
2021-07-02 11:58:30 +02:00
Holger Vogt
e91ec306ba
Remove some compiler warnings
2021-07-02 11:58:10 +02:00
Holger Vogt
2536b78acb
Allow tailing '\0'
...
Remove potentially user induced buffer overflow by replacing
sprintf by snprintf.
2021-07-02 11:57:30 +02:00
Holger Vogt
053e8c5a04
remove compiler warning
2021-07-02 11:56:29 +02:00
Holger Vogt
d5fd9c8625
correct function prototype
2021-07-02 11:56:14 +02:00
Holger Vogt
45c171635a
Remove compile error which may occur with specific settings
2021-07-02 11:55:28 +02:00
Holger Vogt
19ddeb8fe6
formatting (not complete)
2021-07-02 11:54:59 +02:00
Holger Vogt
545d2f9177
Report an error when trying to define ports
...
'v', 'vd', 'i', and 'id' as 'inout'
Parch 105 provided by Giles Atkinson
2021-07-02 11:54:34 +02:00
Holger Vogt
bc74caca2f
Don't create cat2strings if on VS2019
2021-07-02 11:54:06 +02:00
Holger Vogt
d19c8e7f41
Efficiency: Remove setting the random seed to behind the options selection
...
Evaluate '.options cshunt=xx' earlier to allow the following:
Set the option by calling INPpas4() during parsing the circuit,
before .ic is set.
Ckt and Task cshunt are still set, but their values are available
only too late for INPpas4(), but may be used by command 'option'
(w/o parameters) for assessing the options and their values.
2021-07-02 11:53:42 +02:00
Holger Vogt
32204bffe0
enable cshunt for MS Windows fftw and shared ngspice
2021-07-02 11:53:15 +02:00
Holger Vogt
911b50fa8f
Adding capacitors, one per voltage node
2021-07-02 11:52:45 +02:00
Holger Vogt
f8357dad88
Prepare Cshunt: add a cpacitor to each voltage node
...
Function inppas4() will add the extra caps, to be done.
2021-07-02 11:52:15 +02:00
Holger Vogt
db5c6cd0ec
Add some comments for inppas1,2,3
2021-07-02 11:51:57 +02:00
Holger Vogt
d07fab904c
Speed enhancement while reading large PDKs:
...
Line concatenation used tprintf, which uses vsnprintf,
which is very inefficient in Linux, MINGW, but efficient
using MSVC. Thus for the others a function cat2strings() is
introduced, which uses memccpy().
2021-07-02 11:51:18 +02:00
Holger Vogt
e2cf397b6d
Restrict the limit for exp function (linear growth when exponent
...
is larger than 14, commit [93a76d]) to the PSPICE compatibility
mode.
2021-07-02 11:50:42 +02:00
Holger Vogt
8da2f3c16d
unify the evaluation of '.options scale=xx'
...
.option in a netlist will override 'options'
from spinit, .spiceinit or a script
'.options scalm=xx' yields a warning, it is not supported.
2021-07-02 11:50:17 +02:00
dwarning
8a04d049ab
Correct scaling for area and pj geometry scaled diode (level=3)
2021-07-02 11:49:35 +02:00
dwarning
a7cf70e615
Introduce element parameter handling for geometry scaled diode (level=3)
2021-07-02 11:49:21 +02:00
dwarning
56c8a24dd7
Correct parameter handling for geometry scaled diode (level=3)
2021-07-02 11:48:53 +02:00
dwarning
2a55f50192
First attempt for geometry scaled diode (level=3)
2021-07-02 11:48:04 +02:00
Holger Vogt
4bee26b8b9
Remove unused prototype
2021-07-02 11:45:11 +02:00
Holger Vogt
7064df7f3b
Define a preprocessor flag HAS_NG_BOOL
2021-05-05 21:59:25 +02:00
Holger Vogt
f6ba097b9c
Replace BOOL by NG_BOOL
...
Avoid clashes in environments where BOOL my be used differently.
NG_BOOL is typedefed to int, as ngspice uses int for boolean variables.
2021-05-05 10:52:13 +02:00
Holger Vogt
ded0f79c01
Avoid type 'bool', as ist is a built-in type in C++, not
...
equaling 'int' which ngspice is using.
Change bool to BOOL and ad a
typedef int BOOL;
2021-03-28 18:20:47 +02:00
Holger Vogt
4dcc243aaf
Add missing references to svg.c
2021-03-28 13:31:01 +02:00
Holger Vogt
0a0479916c
linking with readline failed
...
after OS upgrade to Big Sur
Install readline from Homebrew
Edit configure flag with link to new readline:
--with-readline=/usr/local/opt
2021-03-28 13:30:51 +02:00
Holger Vogt
5abd8057e6
remove deprecated storage class
2021-03-28 13:30:39 +02:00
Holger Vogt
9311674499
re-enable PostScript/SVG to file by pushbutton
...
on the ngspice plot window, avoid crash due to double freeing.
2021-03-19 15:07:33 +01:00
Holger Vogt
e1ae8c7495
remove memory leak
2021-03-19 15:07:23 +01:00
Holger Vogt
5b3007e06a
Plotting with feh in macOS failes with --magick-timeout,
...
so replace it by --conversion-timeout, which does not do
in Linux or Cygwin.
2021-03-19 15:07:13 +01:00
Holger Vogt
9f6d550837
Remove memory leaks in the SVG code
2021-03-19 15:06:59 +01:00
Holger Vogt
74a615d5af
Free tmalloced Cfg.strings[i]
2021-03-19 15:06:49 +01:00
Holger Vogt
02b4f06f2d
variables like color1 may override thie svg_intopts and svg_stropts.
...
Unsetting the variables will reset to the default.
Malloced colors and cfg.strings will be freed again.
Examples do show more of the options.
2021-03-19 15:06:35 +01:00
Holger Vogt
4b6aa6df6e
more examples
2021-03-16 11:02:54 +01:00
Holger Vogt
bdf50382ac
Add a second call to svg_intopts
2021-03-16 11:02:44 +01:00
Holger Vogt
4303534f91
Shift colorID evaluation to a place after svg_stropts is read.
...
Remove unused.
2021-03-16 11:01:54 +01:00
Holger Vogt
914604bfab
Update to plotfiles
...
Plotting with gnuplot, png, svg and PostScript files
2021-03-14 15:33:35 +01:00
Holger Vogt
6443135892
libtool versioning added for Linux shared ngspice.
...
And commented out immediately, because not compatible
to KiCad, which is linking to libngsice.so.0.0.0
2021-03-14 15:33:25 +01:00
Holger Vogt
1ba168ff30
clarify call to gnuplot on Linux/Cygwin
2021-03-14 15:33:17 +01:00
Holger Vogt
7b9d1fb74a
enable variable 'nolegend' for gnuplot
2021-03-14 15:33:10 +01:00
Holger Vogt
9a82e5061a
Another SVG example input file
2021-03-14 15:33:02 +01:00
Holger Vogt
c7a3fc4401
PostScript example input file
2021-03-14 15:32:56 +01:00
Holger Vogt
f61ea3aa96
if 'set nounits' is given, plotting of the units is suppressed
...
(they may be added manually to the y and x labels for SI conformity).
2021-03-14 15:32:49 +01:00
Holger Vogt
736d42a5b0
remove unused
2021-03-14 15:32:39 +01:00
Holger Vogt
43f3fceb75
enable svg also for console app on Windows
2021-03-14 15:32:31 +01:00
Holger Vogt
2f2db20305
updates for Cygwin/Linux fonts and font size
2021-03-14 15:32:24 +01:00
Holger Vogt
f31ae08f0b
remove unused args
2021-03-14 15:32:15 +01:00