Holger Vogt
6b0104849e
Add statistics: load, subckt expansion, and parse times
6 years ago
Holger Vogt
8ea51cc2f3
If command 'source' fails, don't move on with the script
(and od nonsens simulations), but stop ngspice and await
detaching (shared ngspice), or wait for user input.
6 years ago
Jim Monte
b5ce669de5
fgets error
6 years ago
Holger Vogt
b701a6347d
cktislinear(): coupling of inductors is also linear
6 years ago
Holger Vogt
673069f442
add to the source window after 'source' command
6 years ago
Jim Monte
082f36e794
Formatting
6 years ago
Holger Vogt
643b0edc26
enable local or global statistical values for B source
pre_set statlocal
(or set statlocal in spinit or .spiceinit) will be setting a
different random number for evaluating the value of fcn agauss
etc. in each B line, e.g. if this line appears in a subcircuit,
all expanded B lines will have different values. If not set,
each B line will use the same random number for agauss evaluation.
6 years ago
Holger Vogt
58901fe898
remove spurious error message
6 years ago
Holger Vogt
e9603dcdeb
enable inp_dodeck() to return an error state,
if error, inp_spsource() will return error as well
6 years ago
Holger Vogt
f9307d0beb
enable returning inp_spsource() with an error code
6 years ago
Jim Monte
2068c4fffb
Added -D/--define option to define a variable from the command line.
6 years ago
Jim Monte
9d2c105942
Fixed bug with 255 card deck entered using circbyline
6 years ago
Holger Vogt
1b96b5a087
fix typos
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
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
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
Holger Vogt
0a50acbb66
inp.c, .if: enable multiple .elseif sections
8 years ago
Holger Vogt
54d9ec93cb
bug 375, select correct input line,
reported by Bohdan Tkhir
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
dwarning
cc4e4d9bad
verify pointer before utilization
8 years ago
dwarning
93f35afe69
s variable was assigned values twice successively
8 years ago
Holger Vogt
6df684e22a
Evaluate .if ... .elsif ... .else ... .endif recursivly
8 years ago
Holger Vogt
ae89381bb6
Prevent a segfault if multiple circuits are freed upon 'quit'
by checking if a 'recent_deck' that is to be freed also exists
with same address in ci_mcdeck of another circuit. If yes, set
this to NULL before freeing.
8 years ago
Holger Vogt
70439e38fa
safety check if no circuit is loaded, prevent crash
8 years ago
Holger Vogt
5f1f6ccb29
add a small comment
8 years ago
dwarning
7d78cba9ef
fix some prototype declarations
8 years ago
Holger Vogt
9cc690c55c
try to reload only when mc_deck is available
comment modified
8 years ago
Holger Vogt
2b071fec5a
add loading from recent deck (mc_deck) if circuit
file has been removed by remcirc.
8 years ago
Holger Vogt
ac0a70bb84
print deck after re-loading into debug-out-mc.txt,
if 'set ngdebug' is set in .spiceinit
8 years ago
Holger Vogt
cebb83eec1
give preference to mc_reload when reloading the circuit
8 years ago
Holger Vogt
795f9ed6ad
remove unused rparen
8 years ago
Holger Vogt
73da17e367
just keep recent_deck, when it's already equal
to current ft_curckt->ci_mcdeck, thus avoid
freeing ft_curckt->ci_mcdeck
8 years ago
Holger Vogt
d1a8637a29
store deck for command mc_source for each circuit in ft_curckt->ci_mcdeck
remove this storage during remcirc
keep most recent deck in recent_deck
8 years ago
Holger Vogt
393c924886
improve finding tokens, considering nested parens
8 years ago
Holger Vogt
fac5754b79
add variabale inputdir to store the last input file directory
8 years ago
Holger Vogt
107a4a808e
New .option seed=[val|random]
8 years ago
Holger Vogt
10c6c5c38b
Convert .param lines containing 'agauss' and others
into .func (xxx1() 'agauss()', replace all xxx1 entries
by function xxx1().
After subcircuit expansion, replace agauss and others
in B-Line by their suitable values.
8 years ago
Holger Vogt
8fbcb16a57
add fourth parameter to cp_getvar(), in functions missing so far
8 years ago
Holger Vogt
09c876550f
prevent string overflow by adding the string length
to the cp_getvar parameters. Used only with CP_STRING
8 years ago
Holger Vogt
b07ae3123e
use only internal memory functions,
replace strdup by copy
8 years ago
Holger Vogt
e5652cd745
safeguard fclose
8 years ago
h_vogt
1066bf0a7b
Store the numparam dicoS structure for each circuit in a list.
Functions to add, remove, retrive dicoS from the list
and to update dicoS, if the circuit has been changed.
Keeping dicoS is necessary because it may be used by measure.
This patch prevents (huge) memory leaks by overwriting
dicoS if multiple calls to the 'source' command are executed.
10 years ago
Holger Vogt
7ee0b14431
better zero after deaalocation
8 years ago
Holger Vogt
8f41257d87
enable 'temper' evaluation, if circuit is reloaded
8 years ago
Holger Vogt
bea6fba788
prevent false reads in multi-threaded ngshared
8 years ago
Holger Vogt
74584c94ee
prevent false reading after copying an empty file
8 years ago
Holger Vogt
a191697bd6
safeguard opening of file for debug output:
may be not allowed if caller is not started
in admin mode.
8 years ago
Holger Vogt
5f5eacc48e
move skipping white spaces to fcn create_circbyline() now ' .end' is acknowledged
8 years ago