Holger Vogt
c2d11728c4
enable usage of parameters in .options lines.
5 years ago
Holger Vogt
78eee72b36
.temp could not apply params like
.ttemp {tmpparam}:
move evaluation of .temp to a later stage
5 years ago
Holger Vogt
d0da4bebd3
make variable 'dir' local
5 years ago
Holger Vogt
4fd7de9e34
Partially re-introduce and improve code that has been
inadvertently deleted in commit
83592c456 ("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-04-05)
The code transforms the option statements and adds them
to the current circuit.
5 years ago
Holger Vogt
3a908c76ef
Prevent crash, refName may be NULL
5 years ago
dwarning
4ca4b43801
simplify while loop for subckt diode and bjt models
5 years ago
Holger Vogt
c8db059144
Use 'm' and 'multi' correctly in PDKs
If there is alraedy m=xx in a subcircuit instance line,
replace it by m='m*xx' to aknowledge the additional m.
Tested with an (old) TSMC PDK and with Skywater PDK.
5 years ago
Holger Vogt
109e33f127
Improve font selection for Win GUI plot window
Font Names from
https://docs.microsoft.com/en-us/typography/fonts/windows_10_font_list
without option or with Bold or Italic are supported, e.g.
setcs wfont="Cambria Bold Italic".
5 years ago
Holger Vogt
80e5f67466
Reduce wchar_t string length to minimum required
(to be NULL-terminated for CreateWindowW)
5 years ago
Holger Vogt
c9a19c7569
Fix for bug 547
Reduce length of wchar_t strings to the minimum required
for conversion
Check if Bold or Italic is given in the font name, set
corresponding variable
5 years ago
Holger Vogt
741cab390f
Prevent a crash when the number of models exceeds MODNUMBERS
Raise MODNUMBERS to 2048
https://github.com/kicad-spice-library/KiCad-Spice-Library/issues/16
5 years ago
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
5 years ago
dwarning
b1bf7ea0ad
Diode model with selfheating option
5 years ago
Holger Vogt
48acb10929
Remove compiler warnings
5 years ago
Holger Vogt
e91ec306ba
Remove some compiler warnings
5 years ago
Holger Vogt
2536b78acb
Allow tailing '\0'
Remove potentially user induced buffer overflow by replacing
sprintf by snprintf.
5 years ago
Holger Vogt
053e8c5a04
remove compiler warning
5 years ago
Holger Vogt
d5fd9c8625
correct function prototype
5 years ago
Holger Vogt
bc74caca2f
Don't create cat2strings if on VS2019
5 years ago
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.
5 years ago
Holger Vogt
f8357dad88
Prepare Cshunt: add a cpacitor to each voltage node
Function inppas4() will add the extra caps, to be done.
5 years ago
Holger Vogt
db5c6cd0ec
Add some comments for inppas1,2,3
5 years ago
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().
5 years ago
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.
5 years ago
Holger Vogt
9311674499
re-enable PostScript/SVG to file by pushbutton
on the ngspice plot window, avoid crash due to double freeing.
5 years ago
Holger Vogt
e1ae8c7495
remove memory leak
5 years ago
Holger Vogt
9f6d550837
Remove memory leaks in the SVG code
5 years ago
Holger Vogt
74a615d5af
Free tmalloced Cfg.strings[i]
5 years ago
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.
5 years ago
Holger Vogt
4303534f91
Shift colorID evaluation to a place after svg_stropts is read.
Remove unused.
5 years ago
Holger Vogt
1ba168ff30
clarify call to gnuplot on Linux/Cygwin
5 years ago
Holger Vogt
7b9d1fb74a
enable variable 'nolegend' for gnuplot
5 years ago
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).
5 years ago
Holger Vogt
43f3fceb75
enable svg also for console app on Windows
5 years ago
Holger Vogt
f31ae08f0b
remove unused args
5 years ago
Holger Vogt
1607b3a21f
X11: Add a button for writing an SVG file to the plot window.
Update button texts.
Add a function hardcopySVG to write the SVG file, called by
clicking the SVG button.
5 years ago
Holger Vogt
43c44a8ca9
correct description
5 years ago
Holger Vogt
1f54a6add3
WinGUI: Make the text output from com_hardcopy available immediately
by call to function UpdateMainText.
Enable color for postscript output.
5 years ago
Holger Vogt
683ef77955
Separate color and b&w
b&w in the plot window is not(yet) supported.
5 years ago
Holger Vogt
6d388e1679
Select black&white, if appropriate
Return colorID to previous values after hardcopying.
5 years ago
Holger Vogt
391822b558
use colorN as for normal plots
color0 is background
svg_intops and svg_stropts may set all parameters
6 years ago
Holger Vogt
bc678baaca
modified from Giles Atkinson's patch:
use hardcopy entries to set variables
maybe overridden by stropts and intopts list variables
6 years ago
Holger Vogt
6b4d2a9241
separate svg and postscript handling
6 years ago
Holger Vogt
dacd727d87
separate svg and postscript
suitable text placement for svg
6 years ago
Holger Vogt
87b59d22a5
add generation of svg graphics file
based on patch no. 97 by Giles Atkinson
6 years ago
Holger Vogt
b86c85f85b
Safeguard against usage of --with-readline or --with-editline
Some package maintainers have erroneously used the above ./configure
flags during compiling libngspice-0.so. This has led to an unresolved
symbol history_file with ngspice-34.
5 years ago
Holger Vogt
8076e2b4cf
Check for double '{{ }}', replace the inner '{', '}' by '(', ')'
in .model lines, if compat mode ps is set. Enables use of some On-Semi
power transistor models.
5 years ago
Holger Vogt
a77b529928
set the locale to "C" locally, if shared ngspice
5 years ago
Holger Vogt
5747982ae8
Re-enable devices like E2 1 0 (2,3) 1
Add a new function nexttok_noparens(const char *s) which
skips tokens. Characters , ( and ) are treated like spaces.
5 years ago
Holger Vogt
433a76a1f2
Guard against vector "time" not being available
5 years ago