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.
8 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.
8 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
Holger Vogt
7a1218cc0e
fix ouput redirection for 'print' command
8 years ago
Holger Vogt
54d9ec93cb
bug 375, select correct input line,
reported by Bohdan Tkhir
8 years ago
Holger Vogt
ebe4fd5332
control.c, bug 374, prevent crash if cend[stackp] is NULL
reported by PyroPeter
8 years ago
Holger Vogt
2a947a933e
bug 253: Do not delete the scale vector of the current plot
8 years ago
Holger Vogt
157aaee6f1
Bug #332 , reported by M. Hendriks
Add a warning if statements .control ... .endc are misplaced or missing
8 years ago
Holger Vogt
530cac53c5
bug 337: keep '-' as sign of number following tc1, tc2
8 years ago
Holger Vogt
8d89202161
keep sign together with number when preparing B source pwl (and others)
Seems to be optional, B Source handles numbers with offset sign
8 years ago
Holger Vogt
113060473e
bug 337: replace atof by INPevaluate to allow ngspice numbers
in tc1 or tc2 tokens.
8 years ago
dwarning
ddd3a11bff
variables are assigned values twice successively
8 years ago
Holger Vogt
65ee87e0a2
grid.c, windisp.c, vertical text for postscript and WINGUI
Arial as standard font for WINGUI
8 years ago
Holger Vogt
56701e3d10
add rotation angle to text output, currently used only by postscript,
ignored by all others
8 years ago
Holger Vogt
9e01d0b9f9
postsc.c, enable postscript output for extended ascii.
Currently only Western European latin-1 (ISO/IEC 8859-1) encoding
is supported.
8 years ago
Holger Vogt
41fbc0bb1d
inpcom.c, command gnuplot: no lower case in xlabel, ylabel, title
8 years ago
h_vogt
b0da1f2a0f
com_measure2.c, write a fft vector (sp plot) with complex data
and real frequency to file and load it again, frequency now has become
a complex number as well. This was not recognized, thus ngspice crashed
(see https://sourceforge.net/p/ngspice/discussion/127605/thread/8cccd69c/
by Michal Janik - 2014-11-04
9 years ago
Holger Vogt
9ab153ddc2
Exclude from model search all lines beginning
with a character contained in this list: *vibefghkt
8 years ago
Holger Vogt
277842f948
update to model search function
8 years ago
Holger Vogt
78ab9c477b
Update to the model name search function:
A model name is any token not being a true ngspice number,
except for tokens with some prohibited front characters
{*^@\\\' .
8 years ago
dwarning
de9755b1ad
backup to original state - but changing name of local struct t to tc
8 years ago
dwarning
12498623c8
no use of string 't' - but struct 't' is still used
8 years ago