Commit Graph

4972 Commits

Author SHA1 Message Date
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
h_vogt e049a81541 visualc/vngspice.vcxproj, tiny updates 2016-08-15 19:25:29 +02:00
h_vogt 0fb210a821 commands.c, inp.c, new command 'mc_source' to internally reload circuit for Monte Carlo simulation 2016-08-15 19:25:29 +02:00
h_vogt fb6bb8b1a6 inp.c, copy deck for internal re-sourcing with 'mc_source' to enable Monte-Carlo simulation with commercial model deck 2016-08-15 19:25:29 +02:00
h_vogt 1fae736baf generate debug info also for release builds 2016-08-15 19:25:29 +02:00
h_vogt bef151eb9b comment out subckts before dealing with models 2016-08-15 19:25:29 +02:00
h_vogt 7334e64cd4 .model treatment in fcn comment_out_unused_subckt_models() removed 2016-08-15 19:25:29 +02:00
h_vogt 2411b4bf8c update og function inp_rem_unused_models() recogizes levels, binning models 2016-08-15 19:25:29 +02:00
h_vogt fb7e6d178b inpcom.c, use gettok_noparens to extract model type
'd' from d(...
2016-08-15 19:25:29 +02:00
h_vogt 24f8558be3 inpcom.c, use model_name_match() for comparing model names 2016-08-15 19:25:29 +02:00
h_vogt 1638c34680 inpcom.c, add function inp_rem_unused_models() 2016-08-15 19:25:29 +02:00
h_vogt f7c0dd0c4c inpcom.c, get_number_terminals(), ignore "save" and "print" when CIDER 2016-08-15 19:25:29 +02:00
h_vogt f110d67642 inpcom.c, add function inp_get_elem_ident() 2016-08-15 19:25:29 +02:00
h_vogt b901d87c81 inpcom.c, add fcn inp_check_scope_sub() 2016-08-15 19:25:29 +02:00
h_vogt f70c563728 inpcom.c, add function inp_check_scope_mod() 2016-08-15 19:25:29 +02:00
h_vogt df3424d80d inpcom.c, debugging, tprint... 2016-08-15 19:25:28 +02:00
h_vogt 70e6323adf inpcom.c, tprint(), print levels correction to inp_add_levels() 2016-08-15 19:25:28 +02:00
h_vogt 7239084e77 inpcom.c, inp_add_levels(), add level info to each line in deck 2016-08-15 19:25:28 +02:00
h_vogt 72a2652dbe inpcom.c, function prototype to extract level information from deck 2016-08-15 19:25:28 +02:00
h_vogt 33324ef5bc inpcom.c, add level handling to fcn xx_new_line 2016-08-15 19:25:28 +02:00
h_vogt d0cea70e88 struct line, add array of short, for nesting depth 10 2016-08-15 19:25:28 +02:00
h_vogt f4e93da7b4 inpcom.c, improved tprint for debugging 2016-08-15 19:25:28 +02:00
h_vogt 158cc5dd93 xpressn.c, generate warning for doubly defined symbols, but do not stop ngspice (this resmbles the previous status and is preliminary) 2016-08-15 19:25:28 +02:00
rlar d88c5adc0a some .subckt scope regression tests 2016-08-15 19:25:28 +02:00
h_vogt 98ab040ef6 xpressn.c, cleanup error message 2016-08-15 19:25:28 +02:00
h_vogt fa681584f4 subckt.c, do not put model names into numparam hash table xpressn.c, re-enable error message to alert name redefinition 2016-08-15 19:25:28 +02:00
h_vogt 34844c9e1d sharedspice.vcxproj, add 64 bit capability 2016-08-15 19:25:28 +02:00