rlar
833bace802
variables, explicit processing of ft_curckt->ci_vars, drop uv2
2016-08-15 19:25:33 +02:00
rlar
1b4f945679
variables, cp_remvar(), cleanup
2016-08-15 19:25:33 +02:00
rlar
eb8b1abc79
variables, add some comments, add explicit case US_NOSIMVAR
2016-08-15 19:25:33 +02:00
rlar
1114529879
variables, cp_usrvars(), be more explicit
...
lift uv2 return value up to the invoker of cp_usrvars()
2016-08-15 19:25:33 +02:00
rlar
d795345aa8
variables, drop redundant tfree(v->va_name), rely on free_struct_variable()
2016-08-15 19:25:33 +02:00
h_vogt
e3df9bb931
inpcom.c, bug fix in inp_chk_for_multi_in_vcvs()
2016-08-15 19:25:33 +02:00
h_vogt
e1904a78bd
numparam, use NESTINGDEPTH for the nupa dico stack too
2016-08-15 19:25:32 +02:00
h_vogt
6663da9bda
subckt.c, xpressn.c, spicenum.c, add level information for .subckt entries nupa_scan is totally without level info. This preliminary fix at least lets us decide to issue a warning if subckt have equal names and are on the same level. Still nupa_scan only enters the first entry into its hash table, irrespective of its level.
2016-08-15 19:25:32 +02:00
h_vogt
4d4183384f
MC_ring_ts.sp, example for using the variable 'sharedmode'
2016-08-15 19:25:32 +02:00
h_vogt
ac0c79a591
inp.c, sharedspice.c, enable adding scripts by 'circbyline'
2016-08-15 19:25:32 +02:00
h_vogt
fb49317c8f
sharedspice.c, add variable sharedmode, to be used in scripts.
...
Is set active when shared spice is running.
2016-08-15 19:25:32 +02:00
h_vogt
7fc92f9afd
update to Monte Carlo examples
2016-08-15 19:25:32 +02:00
h_vogt
4756cb3a5b
inp.c, randnumb.c, option seedinfo
...
Print seed information only when option is set.
2016-08-15 19:25:32 +02:00
h_vogt
bff1b9b6c5
examples Monte_Carlo, replace variable rndseed by function setseed
2016-08-15 19:25:32 +02:00
h_vogt
d8a6e11d56
inp.c, enable .option seed=val || random || 'random'
...
setting the seed value of the random number generator either to val
or to a random number drawn from the amount
of seconds passed since 1.1.1970
May be overrideden at any time later by command 'setseed newval'
2016-08-15 19:25:32 +02:00
h_vogt
06ca10911b
randnumb.c, main.c, sharedspice.c,spinit.in
...
replace 'set seed = val' by 'setseed val'
no more check_seed in every random number calculation
2016-08-15 19:25:32 +02:00
h_vogt
26ad9be6c0
inp.c, do not delete mc_deck if a script is read from file
2016-08-15 19:25:32 +02:00
h_vogt
10f50b2fc9
command.c, add command 'setseed'
...
randnumb.c, add function com_sseed
for immediately setting the seed of the random number generator
'setseed' uses variable rndseed as seed
'setseed <n>' uses <n> as seed and sets rndseed to <n>
2016-08-15 19:25:32 +02:00
h_vogt
7be6ae2522
inp.c, xpressn.c, cmath2.c, apply gauss1() instead of gauss0()
...
-> reproducible start value if 'set rndseed=val' is given.
2016-08-15 19:25:32 +02:00
h_vogt
5692b074f3
redo random number generation
...
wallace.c, main.c, randnumb.c, sharedspice.c:
set a seed value by getpid, may be overridden by 'set rndseed=val'
add func gauss1() returning only a single value
speed up gauss0()
add checkseed() to rgauss() and poisson() to read 'rndseed', if changed
2016-08-15 19:25:31 +02:00
h_vogt
a54b9e8ad0
misccoms.c, clear controls upon 'quit'
2016-08-15 19:25:31 +02:00
h_vogt
527389d09a
misccoms.c, enable freeing more memory allocations upon 'quit'
...
reduces valgrind 'still reachable' allocations
will finally allow using 'virtual leak detector' on Windows
2016-08-15 19:25:31 +02:00
h_vogt
a52b41138f
variable.c, remove memory leaks, add function to free all variables
2016-08-15 19:25:31 +02:00
h_vogt
71c4b6244c
main.c free argv after its use (Win GUI only)
2016-08-15 19:25:31 +02:00
h_vogt
cde840abc3
examples/various: tests and loops using alterparam
2016-08-15 19:25:31 +02:00
h_vogt
fc2bc6538c
inpcom.c, enable current measurement in B-line like
...
Isup 1 0 1
Rsup 1 0 2
Bsup 2 0 i=i(Isup)
Rb 2 0 1
2016-08-15 19:25:31 +02:00
h_vogt
d4af391ea1
spiceif.c, remove memory leak ** to be tested thouroughly **
2016-08-15 19:25:31 +02:00
h_vogt
937ba1b283
inp.c, alterparam, to be used in conjunction with 'mc_source'
...
add command 'alterparam paramname=pvalue'
to change a global .param
add command 'alterparam subcktname pname=vpval'
to change a parameter inside of a subcircuit
2016-08-15 19:25:31 +02:00
h_vogt
2232bcab05
misccoms.c, call function to delete some structures in sharedspice.c, mc_deck in inpc.c upon 'quit'
2016-08-15 19:25:31 +02:00
h_vogt
39dbc4df1e
sharedspice.c, add functions to delete myvec, pvc, vecsa
2016-08-15 19:25:31 +02:00
h_vogt
b482f45289
inp.c, function to delete mc_deck called from com_quit avoid memory leak in ngspice.so after dlclose
2016-08-15 19:25:31 +02:00
h_vogt
913e613fc1
inp.c, correction for shared ngspice
2016-08-15 19:25:31 +02:00
h_vogt
fbb9ba72f8
inpcom.c, debugging, tprint...
2016-08-15 19:25:31 +02:00
h_vogt
3327c189bd
compile instructions for LINUX as a script
2016-08-15 19:25:31 +02:00
h_vogt
a635b0bc91
inp.c, shift agauss evaluation before subckt substitution. So parameters with agauss are set once only for all devices.
2016-08-15 19:25:31 +02:00
h_vogt
c81ba44477
Monte Carlo simulation with commercial libraries circuit and .control section in a single file
2016-08-15 19:25:30 +02:00
h_vogt
a2e9302b12
Monte Carlo simulation examples file using commercial HSPICE compatible libraries. Start with 'ngspice MC_ring_ts.sp'.
2016-08-15 19:25:30 +02:00
h_vogt
f03d033e09
subckt.c, copy a deck without .control section
2016-08-15 19:25:30 +02:00
h_vogt
eaebab6882
add dicoS->linecount to safely delete dynrefptr[i],
...
linecount may change if circuits are changed or deleted.
2016-08-15 19:25:30 +02:00
h_vogt
b9af52108f
spiceif.c, fixme marker
2016-08-15 19:25:30 +02:00
h_vogt
268a22e36f
gettok_nc(&line): like gettok(), move pointer beyond next token in line, but without returning a string, without TMALLOC. Replaces constructs like tfree(gettok(&line)).
2016-08-15 19:25:30 +02:00
h_vogt
dca877ca69
postcoms.c, remove leak by deleting hash table of variables if 'destroy' is executed. Add deleting pl->pl_env.
2016-08-15 19:25:30 +02:00
h_vogt
66d6812f45
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.
2016-08-15 19:25:30 +02:00
h_vogt
344c74ed47
runcoms.c, add variable 'sim_status' to indicate if a simulation has been aborted
2016-08-15 19:25:30 +02:00
h_vogt
c7525c0f6e
inpcom.c: remove white spaces in command files debug output of command files
2016-08-15 19:25:30 +02:00
h_vogt
815a2c1f1c
replace function name eval_agauss_bsource by eval_agauss to reflect its actual usage
2016-08-15 19:25:30 +02:00
h_vogt
1d4138da8f
inp.c, add .param lines to evaluatuion of agauss etc.
2016-08-15 19:25:30 +02:00
h_vogt
6ca51e9560
inp.c, use function inp_deckcopy_oc() for saving the deck for later retrieval with mc_source
2016-08-15 19:25:30 +02:00
h_vogt
3869e39341
subckt.c, add function inp_deckcopy_oc()
...
copy a deck without li_actual, without comment lines
2016-08-15 19:25:30 +02:00
h_vogt
3946e3aab8
inpcom.c, debugging, tprint...
2016-08-15 19:25:30 +02:00