Brian Taylor
75c2811fa9
Fix some memory leaks.
1 year ago
dwarning
3d20dc0da7
format - white spaces
1 year ago
dwarning
bf6ffd357d
Keep it simple: use only one structure and get_time function
1 year ago
dwarning
60554855d8
seconds() gives difftime to program start, lower priority for getrusage() and times()
1 year ago
dwarning
3faed1647a
Reorder and renovate timer functions taking into account ngspice multiprocessor capabilities
by using available high performance functions first.
Deprecated ftime() still acts as a backup function.
Solution is portable for today's operating systems and compilers.
1 year ago
Holger Vogt
60ddad4983
Make the resistor name unique for a device with multiple unconnected nodes
1 year ago
Holger Vogt
793fca6e2a
If preprocessing is skipped, we still need the number of lines in the deck.
1 year ago
Holger Vogt
8e05683592
Prevent crash if number of lines is wrong/not available ...
1 year ago
Holger Vogt
20d6fb460f
Add a comment
1 year ago
Holger Vogt
e2c4182888
Vectors Cy_xxx are of type 'current'.
1 year ago
Holger Vogt
c716e34425
Use the correct type for each vector after S-parameter analysis.
Cy_1_1 is still missing (voltage as default).
1 year ago
Holger Vogt
27db91480b
Fix bug no. 708, reported by Philip Sauvage.
1 year ago
Holger Vogt
368c59466b
Allow plotting a single point in an ascii plot
(command .asciiplot)
2 years ago
Giles Atkinson
537d55d80b
Improve an error message.
2 years ago
Giles Atkinson
cf812da363
Try to clarify the mechanism of parameter substitution and add
an example of substituting an XSPICE vector parameter.
2 years ago
Holger Vogt
d5f0c6598f
Fix commit 09685dde1
("Set lower case for variables or vectors in command 'echo'.
Tokens starting with '$' will get lower-casing.", 2024-09-07)
Don't use s as name for temporary string, as s has been set
already and is used later.
2 years ago
Holger Vogt
b62528d7e5
Set lower case for variables or vectors in command 'echo'.
Tokens starting with '$' will get lower-casing.
2 years ago
Holger Vogt
287280c3db
Make error messages more verbose:
add line number and source file name.
2 years ago
Holger Vogt
bce621680b
Add line number and source file to some error messages
2 years ago
Holger Vogt
8e8716abc7
Fix warning message
2 years ago
Holger Vogt
c2c35b56a4
More on verbose error and warning messages
2 years ago
Holger Vogt
4e6af5a55f
Allow KiCad special token V(/xyz) by quoting
2 years ago
Holger Vogt
c33fd66a21
Make error messages more verbose:
add line number and source file name.
2 years ago
Holger Vogt
123ed0aada
Add simulator version info to raw file ('write' commad)
using an extra line 'Command: ...').
The old sequence (adding commands manually to raw file) is
still available.
The 'Command: anycommand' will not be executed if loading
an ngspice-generated raw file. Raw files from other simulators may
generate a warning that the command is not available.
2 years ago
Holger Vogt
1087c6a0c2
Add simulator version info to raw file in batch mode,
using the line 'Command:...'
2 years ago
Vogt
501a64470f
Error and warning messages to stderr
2 years ago
Holger Vogt
295be20859
Remove sourceinfo upon shared ngspice reset.
Remove memory leaks.
2 years ago
Holger Vogt
a2ca4616b9
Memcpy only when p_word is not NULL
enable -fsanitize=address
2 years ago
Holger Vogt
250e9afd92
Set pl_lookup_table to NULL after freeing: allow another initialization
2 years ago
Holger Vogt
4f8cfbf9f9
Update copyright
2 years ago
Holger Vogt
2af390f0b1
Update copyright info
2 years ago
Holger Vogt
3c7012a826
Repair the link to the xhtml manual
Thanks to Geoffrey Coram for the hint.
2 years ago
Holger Vogt
acdd93f157
If compiling shared ngspice, don't set up a terminal.
2 years ago
Holger Vogt
442d8554f0
Enable single terminal n devices (Verilog-A modules)
2 years ago
Holger Vogt
14bb63490c
Plug a memory leak
2 years ago
Brian Taylor
d01868b725
Cleanup gcc compiler warnings.
2 years ago
Holger Vogt
b1795dbcf2
add path or filepath (without file name) to variable sourcepath,
when calling command 'source'
2 years ago
Holger Vogt
dd6089c4fc
Improved warning message: hint to line causing the warning.
2 years ago
Holger Vogt
d61a728688
Add function check_for_nodes to
check if there are enough tokens in an instance line.
2 years ago
Holger Vogt
0362953cd4
Bail out when the instance line is not complete.
Moving on does typically not make any sense.
2 years ago
Holger Vogt
fa5ac4a0cd
When reading code models, allow only a single model pere command
(as was implicitely assumed anyway).
2 years ago
Holger Vogt
344beaad24
Add ft_spiniterror, to be set during spinit processing,as
ft_stricterror will be set only later, when .spiceinit is
executed.
2 years ago
Holger Vogt
74fc096bfd
Enable coupling of more than 2 inductots in a single line:
K1 L1 L2 L3 L4 L5 0.99
2 years ago
Holger Vogt
ee39d678b7
Improve comment
2 years ago
Holger Vogt
ace47103e7
Search path for .lib and .include has been enhanced to read complete
or partial paths from environmental variables. The env variable
names have to start with '$' as the first character after the .inc
or .lib token. Two consecutive env variables are possible. They are
read each until directory separator '/' or '\\', or if none is found,
until the end of the line. In this case the filename has to be included
in the env variable. A .lib line may look like
.lib "$ENVS1\$ENVS2/libraries\sky130_fd_pr\latest\models\sky130.lib.spice" tt
If an env variable is read successfully, a ngspice variable with
the same name (without leading '$') and contents is defined for
use in a .control section.
2 years ago
Holger Vogt
252ca65f56
Add '.save nosub' to suppress storing the node vectors from inside
of subcircuits.
Saves a lot of memeory if using devices with subcircuit models,
and one is not interested in the inner workings of the device model.
2 years ago
Holger Vogt
621918f289
Transform nested braces {{}} into {()} also in .param statements
(See TI PSPICE model for LMR33630).
2 years ago
Holger Vogt
2f5b869979
Issue this warning only when 'set ngdebug' is given.
2 years ago
Holger Vogt
b660e75504
Save path to .include file, add it to the search paths
for loading the next .include file.
If input directory dir_name is not set when loading .include files,
set it to the first .include found.
Both instruction add to the search paths for file to be inluded
and are valuable when the netlist is sent by circbyline without
input file involved.
2 years ago
Holger Vogt
0e465068b0
Identifier 'card' may not be available or not useful when
netlist is loaded via circbyline().
2 years ago