Commit Graph

5312 Commits

Author SHA1 Message Date
h_vogt 975745fa3c update to Monte Carlo examples 2017-04-23 19:33:58 +02:00
h_vogt 932665124f inp.c, randnumb.c, option seedinfo
Print seed information only when option is set.
2017-04-23 19:33:58 +02:00
h_vogt 1c87f6b3b0 examples Monte_Carlo, replace variable rndseed by function setseed 2017-04-23 19:33:58 +02:00
h_vogt b63396288b 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'
2017-04-23 19:33:58 +02:00
h_vogt 310efd1307 randnumb.c, main.c, sharedspice.c,spinit.in
replace 'set seed = val' by 'setseed val'
no more check_seed in every random number calculation
2017-04-23 19:33:58 +02:00
h_vogt 4e04f1f17c 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>
2017-04-23 19:33:58 +02:00
h_vogt 187a1ab2a5 inp.c, xpressn.c, cmath2.c, apply gauss1() instead of gauss0()
-> reproducible start value if 'set rndseed=val' is given.
2017-04-23 19:33:58 +02:00
h_vogt 2d2b7f9257 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
2017-04-23 19:33:58 +02:00
h_vogt 746d1dc46c misccoms.c, clear controls upon 'quit' 2017-04-23 19:33:57 +02:00
h_vogt 6e8ade3ba3 misccoms.c, enable freeing more memory allocations upon 'quit'
reduces valgrind 'still reachable' allocations
will finally allow using 'virtual leak detector' on Windows
2017-04-23 19:33:57 +02:00
h_vogt 0e986f7059 variable.c, introduce cp_remvar_all() to free all variables 2017-04-23 19:33:57 +02:00
h_vogt 4f229d450a main.c free argv after its use (Win GUI only) 2017-04-23 19:33:57 +02:00
h_vogt 60cb9f109e 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
2017-04-23 19:33:57 +02:00
h_vogt a2f69530a5 spiceif.c, remove memory leak ** to be tested thouroughly ** 2017-04-23 19:33:57 +02:00
h_vogt ec083630bc misccoms.c, call function to delete some structures in sharedspice.c upon 'quit' 2017-04-23 19:33:57 +02:00
h_vogt 4875ae9e7d sharedspice.c, add functions to delete myvec, pvc, vecsa 2017-04-23 19:33:57 +02:00
h_vogt 48ee93760c inp.c, correction for shared ngspice 2017-04-23 19:33:56 +02:00
h_vogt 3e20905117 inpcom.c, debugging, tprint... 2017-04-23 19:33:56 +02:00
h_vogt 973db34eca compile instructions for LINUX as a script 2017-04-23 19:33:56 +02:00
h_vogt 1d73f4d8be inp.c, shift agauss evaluation before subckt substitution. So parameters with agauss are set once only for all devices. 2017-04-23 19:33:56 +02:00
h_vogt 7ad8637455 Monte Carlo simulation with commercial libraries circuit and .control section in a single file 2017-04-23 19:33:56 +02:00
h_vogt 83e8f7617a Monte Carlo simulation examples file using commercial HSPICE compatible libraries. Start with 'ngspice MC_ring_ts.sp'. 2017-04-23 19:33:56 +02:00
h_vogt 7dd0eaaf8c add dicoS->linecount to safely delete dynrefptr[i],
linecount may change if circuits are changed or deleted.
2017-04-23 19:33:56 +02:00
h_vogt 2139f328bb spiceif.c, fixme marker 2017-04-23 19:33:56 +02:00
h_vogt ad6cd2bd40 postcoms.c, remove leak by deleting hash table of variables if 'destroy' is executed. Add deleting pl->pl_env. 2017-04-23 19:33:55 +02:00
h_vogt fa36112280 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. 2017-04-23 19:33:55 +02:00
h_vogt c5a5cdbeaa runcoms.c, add variable 'sim_status' to indicate if a simulation has been aborted 2017-04-23 19:33:55 +02:00
h_vogt 795083a0b2 inpcom.c: remove white spaces in command files debug output of command files 2017-04-23 19:33:55 +02:00
h_vogt 2fcb9ae032 replace function name eval_agauss_bsource by eval_agauss to reflect its actual usage 2017-04-23 19:33:55 +02:00
h_vogt 5a224b69e1 inp.c, add .param lines to evaluation of agauss etc. 2017-04-23 19:33:55 +02:00
rlar 83fc1212fa fixme 2017-04-23 19:33:55 +02:00
h_vogt 62b43e0257 inpcom.c, tprint(), print levels correction to inp_add_levels() 2017-04-23 19:33:55 +02:00
h_vogt 31a482fd84 .model treatment in fcn comment_out_unused_subckt_models() removed 2017-04-23 19:33:55 +02:00
h_vogt e77f9451a4 inpcom.c, add function inp_rem_unused_models() 2017-04-23 19:33:54 +02:00
h_vogt 89c29a646d inpcom.c, add function inp_get_elem_ident() 2017-04-23 19:33:54 +02:00
rlar 50a9ed4b8e fixme 2017-04-23 19:33:54 +02:00
rlar 35363bf697 drop, bogus_find_subckt, use a proper scoped search 2017-04-23 19:33:54 +02:00
rlar 4ec8e8745a inpcom.c, introduce inp_add_levels(), add scope to decks 2017-04-23 19:33:54 +02:00
h_vogt 10e9a660ff inpcom.c, add level handling to fcn xx_new_line 2017-04-23 19:33:54 +02:00
rlar 1afa202fa9 introduce struct nscope 2017-04-23 19:33:54 +02:00
h_vogt 78ffca3224 inpcom.c, improved tprint for debugging 2017-04-23 19:33:54 +02:00
h_vogt 9510b4fd35 xpressn.c, generate warning for doubly defined symbols, but do not stop ngspice (this resmbles the previous status and is preliminary) 2017-04-23 19:33:53 +02:00
rlar 682fc947ce some .subckt scope regression tests 2017-04-23 19:33:53 +02:00
h_vogt f8e9d0499a xpressn.c, cleanup error message 2017-04-23 19:33:53 +02:00
h_vogt c5d4e3220d subckt.c, do not put model names into numparam hash table xpressn.c, re-enable error message to alert name redefinition 2017-04-23 19:33:53 +02:00
rlar 85fdadc683 broken commit: "memory leak in variable.c: fcn vareval(), free variable v created by cp_enqvar and used locally"
freeing stuff which is still used,
actually cp_enqvar is broken and needs fixing,
  but thats used at placed where ownership and usage is not clear
2017-04-23 19:33:53 +02:00
h_vogt 13b6a5fd40 memory leak in variable.c: fcn vareval(), free variable v created by cp_enqvar and used locally 2017-04-23 19:33:53 +02:00
h_vogt 4d64117e79 MC_ring.sp: start with batch mode or interactive mode
with variable $batchmode
2017-04-23 19:33:53 +02:00
h_vogt 25d290af03 inp.c, incom.c: enable evaluation of all statistical functions agauss, gauss, aunif, unif, limit
inp.c: agauss in MC with prof. libraries, second part: after subcircuit expansion, replace all agauss occurrencies in b-lines by their respective return value of fcn agauss()
2017-04-23 19:33:53 +02:00
rlar 5198f47793 inpcom.c: remove recursive .param -> .func replacement in fcn inp_fix_agauss_in_param() if AGAUSS is involved 2017-04-23 19:33:53 +02:00