Holger Vogt
ad5ad8270f
correct the temperature replacement in ps
TEMPER is in degrees °C
7 years ago
Kevin Zheng
b4ee4e28d6
Fix a build error on FreeBSD 12, bison 3.3.2, automake 1.16.1 and BSD make
by dropping the rules to run bison and use automake's built-in rules instead
7 years ago
Holger Vogt
bfe9e29580
If a in command set name="value" value is encapsulated in double quotes, it is always treated as a string variable.
7 years ago
Jim Monte
6bce493d25
Remove memory leak: If the check of the data fails, the data itself is leaked.
Signed-off-by: Holger Vogt <holger.vogt@uni-due.de>
7 years ago
Jim Monte
4afc5ed5b5
One of the links provided when the help command is executed returned a 404 not found error. This patch replaces that link with an HTML version of the ngspice manual.
Signed-off-by: Holger Vogt <holger.vogt@uni-due.de>
7 years ago
Jim Monte
7e0dd64ce5
[PATCH 33 1/6] Fixed Visual Studio C4028 compiler warnings related to
mismatches between prototypes and function definitions
Signed-off-by: Holger Vogt <holger.vogt@uni-due.de>
7 years ago
Holger Vogt
3494e6b390
prevent crash
bug-395 reported by Bohdan Tkhir
7 years ago
Holger Vogt
31db4228f5
fix a typo, correct writing to files under Linux
7 years ago
Holger Vogt
52584312c3
delete the plt and data files after writing eps or png
(only if gnuplot_terminal is set to eps/quit of png/quit)
7 years ago
Holger Vogt
8efa08602a
no plotting, only saving to file
if gnuplot_terminal is eps/quit or png/quit
7 years ago
Holger Vogt
601dfbd781
sprintf -> snprintf: prevent buffer overflow
7 years ago
Holger Vogt
ec4625eda6
redo gnuplot_terminal: Do not save eps/png automatically
none 1: do not print an eps or png file (default)
png 2: print png file, keep command window open
png/quit 3: print png file, quit command window
eps 4: print eps file, keep command window open
eps/quit 5: print eps file, quit command window
7 years ago
Holger Vogt
2344e3d012
patch no. 30 by astx:
don't show command window if gnuplot_terminal is set to png/quit
7 years ago
Holger Vogt
e937adc372
remove bug 388: enable plot unit W for plotting @q1[p]
7 years ago
Holger Vogt
4f8fd19309
Allow " around netnames for .plot and .print commands.
This enables characters like - / + in netnames, e.g.
.print tran v("/jk-flip-flop-1/q")
7 years ago
Holger Vogt
5b21caae98
correct the command name to 'setcs'
7 years ago
h_vogt
a0d87048e6
command.c, inpcom.c, add command 'setcs': like command 'set',
but case sensitive, and thus keeping upper or lower case
of subsequently following variable name and other letters.
9 years ago
Holger Vogt
b4559327de
do not use the current plot, but try to get the plot set in arg...
7 years ago
Holger Vogt
9ee359b1e9
beautify code with astyle
7 years ago
Holger Vogt
1fb2a04f79
use fcn plot_get
7 years ago
Holger Vogt
c1b54a5978
return vector located in plot type given by 'name',
not just from the current plot
7 years ago
Holger Vogt
40411197e0
add function get_plot(name) to return address of named plot
7 years ago
Holger Vogt
a89e5db571
creating a linearized cutout of the original vector
by defining the vectors lin-tstart, lin-tstop, and lin-tstep
before issuing the 'linearize' command
7 years ago
Holger Vogt
0bd3bbd333
clarify estmation of memeory size for output vectors
7 years ago
Holger Vogt
9dd47e3029
Remove memory warning message in shared lib
False warning on some OSs, especially on Linux when loaded during runtime.
The caller then has to take care of memory available
7 years ago
Holger Vogt
be6eca1dbb
add 'option norefvalue' to suppress printing the reference value.
7 years ago
Holger Vogt
5cd23fae72
move adding 1 to meminit to the right place (needed only once)
7 years ago
Holger Vogt
764542e5b1
Set up all memory in a single step for vector list in a plot.
This is to avoid multiple calls to time consuming TREALLOC
7 years ago
dwarning
96a5ea0353
Allow 3 terminal vdmos in subckt.
7 years ago
Holger Vogt
db13f66519
typo
7 years ago
Holger Vogt
0828a8e706
new command bg_ctrl initializing the .control executing thread
pthreads: using detached threads only
keep controls during 'reset', delete only upon 'quit'
7 years ago
Holger Vogt
9d9f415226
inp.c, add variable 'controlswait'. If set, only then controls with
shared ngspice are executed after background thread has finished.
7 years ago
Holger Vogt
e4aabc82c7
shared ngspice: add a third thread to execute the .control commands
only after the background thread has been finished
7 years ago
Holger Vogt
7706889a0a
inpcom.c, fix bug no 384
do not quote fourth token in f, h lines
otherwise if dev name equals param name parsing fails
7 years ago
Holger Vogt
16978f8bf6
inpcom.c, add alternative noise flag 'noise=1'
7 years ago
Holger Vogt
d2d2178407
inpcom.c, remove compiler warnings about
potentially uninitialized local variables and
assignment within conditional expression
7 years ago
Holger Vogt
ee843a4c2c
remove memory leak in noise selection for behavioral r
7 years ago
Holger Vogt
6335c271b2
add a syntax check for the incoming netlist.
check if an .if statement is used, then skip
deleting unused models and subcircuits (may be
required when using commercial libraries) .
7 years ago
Holger Vogt
72110dc65d
noise caculation in behavioral resistors is switched on
by the instance flag 'noisy=1'. Default is a noiseless resistor.
7 years ago
Holger Vogt
08a9d8462b
only treat B lines, .param lines have been processed already.
This is a very preliminary fix to a bug reported by Andy.
Has to be tested with various input conditions.
7 years ago
dwarning
9e663f45e4
remove some ugly warnings
7 years ago
Holger Vogt
9a1b9dc2e6
reduce the amount of reallocs by making the vector size generation
dependent on tstep and tstop for tran or pss simulation
7 years ago
Holger Vogt
9fb2aac952
inpcom.c, skip nois calculation of behavioral resistor
by adding instance parameter noisy=0
7 years ago
Holger Vogt
163f569eb2
Make the new nodes for current measurement i(xxx) unique
by adding a serial number.
7 years ago
Holger Vogt
f1fdb5b2a7
fix current measurement by i(xxx) in B sources: first step,
allow spaces before 'i(' token.
Current measurement for devices in series connection
is still not possible.
7 years ago
Holger Vogt
c98b472366
enable GetProcessMemoryInfo for shared ngspice made with MSVC
7 years ago
Holger Vogt
da75066302
update to resource.c:
proc/self/statm is up-scaled by page size
up and down scaling by 1024 removed
GetProcessMemoryInfo access simplified
pre-processor flags simplified
tiny format changes
7 years ago
Holger Vogt
cf6722af17
Enable function GetProcessMemoryInfo() to get reliable memory usage data
for MINGW and MSVC console, WinGui and MSVC shared ngspice.
MINGW shared ngspice does not link to psapi.dll, so cannot
apply GetProcessMemoryInfo(), but sticks to unreliable function
GlobalMemoryStatusEx().
8 years ago
Holger Vogt
0a50acbb66
inp.c, .if: enable multiple .elseif sections
8 years ago
Holger Vogt
639bfc6280
no lower case after redirection sign > for command 'asciiplot'
8 years ago