Holger Vogt
952af0b75a
replace bash-type code by more general code
patch provided by Attila Kinali
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
96f3b7b029
bug 380, fix removal of string vector after setting the model parameters
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
dwarning
7c94cc2e42
setting gmbs direct to 0
7 years ago
dwarning
92efc0bd6c
don't replicate model and instance temperature dependent parameter
7 years ago
Holger Vogt
34f0e98080
plug a memory leak, delete 'element', if tmalloced before
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().
7 years ago
Holger Vogt
035156be66
No gcc flag -fvisibility if MINGW, CYGWIN
Add flag WINCONSOLE to be used in makefile.am
7 years ago
Holger Vogt
9e6d6be8e2
regression first, then xspice, then the model qua tests
7 years ago
Holger Vogt
4f3b0ca137
add .if ... .endif test to misc in regression
7 years ago
Holger Vogt
cc4b00f991
make regrssion test first, the xspice, then model qua tests
7 years ago
Holger Vogt
df9efac808
inp2dot.c, beautify the code
7 years ago
Holger Vogt
321b1293e7
plug two small memory leaks
7 years ago
Holger Vogt
0d9d228c11
Put the copy for generating permanent next_token exactly at the places
where is is needed: INPtermInsert() and fast->conn...->neg_node_str
XSPICE memory leaks are gone!
7 years ago
Holger Vogt
2a6212f77e
Add a function gc_start to reset the garbage collector
7 years ago
Holger Vogt
4e6de9626e
** A local garbage collector **
Add the list of malloced addresses alltokens.
Add a function copy_gc to copy and enter the address.
Add a function gc_end to delete all entries in alltokens.
Beware of addresses deleted elsewhere and use anew by malloc.
Some tokens should not be deleted here, they get another copying.
7 years ago
Holger Vogt
fb1970e25a
add gc functions to replace MIFgettok and MIFget_token
7 years ago
Holger Vogt
ccb7fa410b
remove all instances of tfree.
Code is working, but full of memory leaks.
7 years ago
Holger Vogt
f9c956ff6b
mif_inp2.c, improve on memory leaks
Delete token before generating it anew, delete def_port_str
only if not already done before.
Still there are some tiny leaks left.
7 years ago
Holger Vogt
7b57800df6
bug 378 put tfree(def_port_type_str) to an appropriate place.
7 years ago
dwarning
d7089adcaf
Also in case of allocation error we have to free existing memory before return.
7 years ago
dwarning
a6fa3aaa11
The 'then' statement was equivalent to the 'else' statement.
Also moredimensional poly sources need only one closing bracket for input port.
7 years ago
Holger Vogt
0a50acbb66
inp.c, .if: enable multiple .elseif sections
7 years ago
Holger Vogt
639bfc6280
no lower case after redirection sign > for command 'asciiplot'
7 years ago
Holger Vogt
7a1218cc0e
fix ouput redirection for 'print' command
7 years ago
dwarning
9789956815
don't ask two times if the allocation has failed
7 years ago
dwarning
f7c36d66d4
As the comment said we have bypass only without selfheating
so the expression 'here->HSMHV2_coselfheat > 0' is always false
and all derivatives to temperature are 0.
7 years ago
Holger Vogt
54d9ec93cb
bug 375, select correct input line,
reported by Bohdan Tkhir
7 years ago
dwarning
68230648c6
white spaces
7 years ago
Holger Vogt
ebe4fd5332
control.c, bug 374, prevent crash if cend[stackp] is NULL
reported by PyroPeter
7 years ago
dwarning
9289f0f773
proper initialization of b magnitude coefficient in a special case
7 years ago
Holger Vogt
2a947a933e
bug 253: Do not delete the scale vector of the current plot
7 years ago
Holger Vogt
157aaee6f1
Bug #332 , reported by M. Hendriks
Add a warning if statements .control ... .endc are misplaced or missing
7 years ago
Holger Vogt
870958c8bc
Feature request #41 by Marek Szuba
Support libtinfo (split ncurses) in autoconf
7 years ago
Holger Vogt
530cac53c5
bug 337: keep '-' as sign of number following tc1, tc2
7 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.
7 years ago
dwarning
ddd3a11bff
variables are assigned values twice successively
7 years ago
dwarning
d7ee6bee50
bug #368 : x-axis description for nested dc sweeps should inline with first level sweep
7 years ago
Holger Vogt
1dc125fba8
various fonts and font sizes for plotting
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
8ffc662b44
re-eable compiling without xgraph
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
h_vogt
87be5b9a41
Do not set Bit 8 in an ANSI char, when \ or ^ occured in a string. Thus the full ANSI set is now available in ngspice strings. The setting of Bit 8 was not exploitet anywhere, but did not allow using the characters from extended ANSI.
9 years ago