Commit Graph

2188 Commits

Author SHA1 Message Date
h_vogt 35fabfc845 misccoms.c, enable freeing more memory allocations upon 'quit'
reduces valgrind 'still reachable' allocations
will finally allow using 'virtual leak detector' on Windows
2016-11-05 20:32:40 +01:00
h_vogt 0df6750947 variable.c, introduce cp_remvar_all() to free all variables 2016-11-05 20:32:40 +01:00
h_vogt ec7ac317aa 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-11-05 20:32:31 +01:00
h_vogt ffed264540 spiceif.c, remove memory leak ** to be tested thouroughly ** 2016-11-05 20:32:31 +01:00
h_vogt 16da4a20fd misccoms.c, call function to delete some structures in sharedspice.c upon 'quit' 2016-11-05 20:32:18 +01:00
h_vogt 4f49cd743a inp.c, correction for shared ngspice 2016-11-05 20:31:55 +01:00
h_vogt a9cec7ae48 inpcom.c, debugging, tprint... 2016-11-05 20:30:28 +01:00
h_vogt a185be81c4 inp.c, shift agauss evaluation before subckt substitution. So parameters with agauss are set once only for all devices. 2016-11-05 20:30:28 +01:00
h_vogt b6be4c4155 add dicoS->linecount to safely delete dynrefptr[i],
linecount may change if circuits are changed or deleted.
2016-11-05 20:30:06 +01:00
h_vogt 21d6127ee3 spiceif.c, fixme marker 2016-11-05 20:30:05 +01:00
h_vogt 2d1c46db8f postcoms.c, remove leak by deleting hash table of variables if 'destroy' is executed. Add deleting pl->pl_env. 2016-11-05 20:30:05 +01:00
h_vogt 06adfa3753 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-11-05 20:30:05 +01:00
h_vogt c6eb18aef8 runcoms.c, add variable 'sim_status' to indicate if a simulation has been aborted 2016-11-05 20:30:05 +01:00
h_vogt 0e7b0f1f96 inpcom.c: remove white spaces in command files debug output of command files 2016-11-05 20:30:05 +01:00
h_vogt d7deb374e6 replace function name eval_agauss_bsource by eval_agauss to reflect its actual usage 2016-11-05 20:30:05 +01:00
h_vogt dc8494a1b1 inp.c, add .param lines to evaluation of agauss etc. 2016-11-05 20:30:05 +01:00
h_vogt 2f8e5747c9 inpcom.c, debugging, tprint... 2016-11-05 20:30:05 +01:00
h_vogt 42e6e381ff comment out subckts before dealing with models 2016-11-05 20:27:46 +01:00
h_vogt ddbd312c1d .model treatment in fcn comment_out_unused_subckt_models() removed 2016-11-05 20:27:45 +01:00
h_vogt b173113a11 update og function inp_rem_unused_models() recogizes levels, binning models 2016-11-05 20:27:45 +01:00
h_vogt f3e844fb10 inpcom.c, add function inp_rem_unused_models() 2016-11-05 20:27:45 +01:00
h_vogt 0f09f214ac inpcom.c, get_number_terminals(), ignore "save" and "print" when CIDER 2016-11-05 20:27:45 +01:00
h_vogt be613e0f47 inpcom.c, add function inp_get_elem_ident() 2016-11-05 20:27:45 +01:00
h_vogt 96ce548316 inpcom.c, add fcn inp_check_scope_sub() 2016-11-05 20:27:45 +01:00
h_vogt cd2417dd5c inpcom.c, add function inp_check_scope_mod() 2016-11-05 20:27:45 +01:00
h_vogt 9c2ccfb649 inpcom.c, debugging, tprint... 2016-11-05 20:27:45 +01:00
h_vogt 6b72886e20 inpcom.c, tprint(), print levels correction to inp_add_levels() 2016-11-05 20:27:44 +01:00
h_vogt 33048cc51f inpcom.c, inp_add_levels(), add level info to each line in deck 2016-11-05 20:27:44 +01:00
h_vogt 663ceee808 inpcom.c, function prototype to extract level information from deck 2016-11-05 20:27:44 +01:00
h_vogt 9d38ae2468 inpcom.c, add level handling to fcn xx_new_line 2016-11-05 20:27:44 +01:00
h_vogt 438e3d98c1 inpcom.c, improved tprint for debugging 2016-11-05 20:27:44 +01:00
h_vogt ec98ce11bc xpressn.c, generate warning for doubly defined symbols, but do not stop ngspice (this resmbles the previous status and is preliminary) 2016-11-05 20:27:44 +01:00
h_vogt 094ae69ff5 xpressn.c, cleanup error message 2016-11-05 20:27:43 +01:00
h_vogt 4234226713 subckt.c, do not put model names into numparam hash table xpressn.c, re-enable error message to alert name redefinition 2016-11-05 20:27:43 +01:00
rlar 8460bdf8bc 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
2016-11-05 20:27:43 +01:00
h_vogt 49510e44c7 memory leak in variable.c: fcn vareval(), free variable v created by cp_enqvar and used locally 2016-11-05 20:27:43 +01:00
h_vogt 9ae9968902 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()
2016-11-05 20:27:43 +01:00
h_vogt 56f03605dc inpcom.c: remove recursive .param -> .func replacement in fcn inp_fix_agauss_in_param() if AGAUSS is involved 2016-11-05 20:27:43 +01:00
h_vogt 7f80087060 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() 2016-11-05 20:27:43 +01:00
h_vogt 7b1f91a3b7 inpcom.c: agauss in MC with prof. libraries, first part: replace all .param lines with agauss by .func make recursive .param -> .func if agauss is involved 2016-11-05 20:27:42 +01:00
h_vogt 6a49bf66e2 inpcom.c, responding to bug report 275 by Dominique Michel: commands plot, hardcopy: no lower case letters in tokens following xlabel, ylabel, title 2016-11-05 20:27:42 +01:00
h_vogt 54d8ad9db3 input.c: bug in MS VS 2015: if in text mode, _read returns 0 instead of 1 after reading '\n' (end of line) 2016-11-05 20:27:42 +01:00
h_vogt 696fcf14f5 bug no. 291: allow let xyz = [] let xyz = [3 -5.6 9] let xyz = [5 $rr -7.9] 2016-11-05 20:27:42 +01:00
h_vogt caebd2dfad Add current measurement for device XYZ using I(XYZ) 2016-11-05 20:27:41 +01:00
h_vogt 95f092ad12 inpcom.c, use gettok_noparens to extract model type
'd' from d(...
2016-11-05 20:27:41 +01:00
h_vogt b7e87b5702 new command '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-11-05 20:27:23 +01:00
h_vogt f42e49770b new command 'mc_source' to internally reload circuit
We store a copy of the whole deck in 'mc_deck'.
'mc_source' can be used to re-read this copy.
2016-11-05 20:26:54 +01:00
h_vogt c554f5786a subckt.c, introduce new function inp_deckcopy_oc()
copy a deck
  without li_actual,
  without comment lines
  without .control section
2016-11-05 20:26:32 +01:00
rlar 26a308bf3d whitespace 2016-11-03 21:02:36 +01:00
rlar cb87144e95 inpcom.c, abstraction, introduce bogus_find_subckt()
extracted from inp_fix_inst_calls_for_numparam().
This code is and was evil, as it does not respect scoping rules.
2016-11-03 19:51:11 +01:00