Commit Graph

5023 Commits

Author SHA1 Message Date
h_vogt 6e868d81bd inpc, preserve sequence of option, last option given
will override others with same name
2016-08-27 17:54:29 +02:00
h_vogt d1271c252a inp.c, option handling debugged 2016-08-27 16:35:17 +02:00
h_vogt fa53a26c74 inp.c, can never happen, remove 2016-08-27 15:59:41 +02:00
h_vogt 06f5622813 xspice table model, add bipolar example 2016-08-21 23:26:53 +02:00
h_vogt 366e0e2c6d renaming table test files 2016-08-21 23:25:32 +02:00
h_vogt ce7255451a cfunc.mod in table 2D and 3D, add proper 0-termination to file read 2016-08-21 23:16:05 +02:00
h_vogt c6b32bee5b table-model-test, polishing comments 2016-08-21 23:14:41 +02:00
h_vogt 8b54de2472 commands.c: 'echo' now allows 10.000 output tokens 2016-08-21 23:13:47 +02:00
rlar 7e7fc9fc5f fix "make dist" 2016-08-17 19:54:39 +02:00
rlar 42942d4075 fix install path for include files
install in $includedir/ngspice
which is by default $prefix/include/ngspice

Thanks to Maciej Suminski who reported the issue in
  #327 Header files are installed  in /usr/share/ngspice/include/ngspice
  https://sourceforge.net/p/ngspice/bugs/327/
2016-08-16 21:59:09 +02:00
rlar 319ec861a5 fix ancient bug, setting instead of asking 'deftol'
This is of no consequence,
  neither 'deftol' nor 'SENS_DEFTOL' is actually used somewhere.
2016-08-15 22:22:18 +02:00
rlar be825a7162 variable.h, reduce visibility of auxiliary struct xxx to variable.c 2016-08-15 21:07:38 +02:00
rlar 840e2121d8 options.c, cleanup inp_getoptsc() 2016-08-15 19:25:34 +02:00
h_vogt c10776bbd4 main.c, misccoms.c, preliminary fix to bug no. 315 longjmp creates segfault under Windows 10 (VS and MINGW), when WM_CLOSE is activated. Set signal handler function to cp_evloop, which leads to com_quit here, undo this function again in com_quit to avoid loops if segfault occurs in com_quit. 2016-08-15 19:25:34 +02:00
rlar 62dd52fbcb fixme, cp_remvar_all() needs to be reconsidered after code change in cp_usrvars() 2016-08-15 19:25:34 +02:00
rlar 6d6df3fff6 variables, cp_vprint, fix a memory leak 2016-08-15 19:25:33 +02:00
rlar 44d55cadb7 variables, lift plot_cur->pl_env up to the invoker of cp_usrvars() 2016-08-15 19:25:33 +02:00
rlar a89730c7bf variables, cp_vprint(), reorder for similarity 2016-08-15 19:25:33 +02:00
rlar 18423ba8de variables, variables, cp_getvar, rewrite 2016-08-15 19:25:33 +02:00
rlar 26acc887e8 variables, cp_getvar(), beware of retval == NULL 2016-08-15 19:25:33 +02:00
rlar d19683daf5 variables, clean up 2016-08-15 19:25:33 +02:00
rlar ad50f54ce7 variables, drop 'found', use identity found == (*p != NULL) 2016-08-15 19:25:33 +02:00
rlar 5c03d49201 variables, cleanup the for loops 2016-08-15 19:25:33 +02:00
rlar 6812634e4b variables, use identity v == *p (and u == *p) 2016-08-15 19:25:33 +02:00
rlar 3cd0f73254 variables, use a pointer to the anchor of the variable instead of 'lv' 2016-08-15 19:25:33 +02:00
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