rlar
a7cc37b2e2
ifparm, fix numdev too
9 years ago
h_vogt
c82ee9d949
introduce option "epsmin"
To define a minimum argument for some log() function invocations.
(most notably for the diode saturation current 'is')
9 years ago
rlar
2f329bd8b4
N_MXVLNTH, drop noise variable name limitation
9 years ago
rlar
7afb798a6f
check for illegal DEVsetup() DEVunsetup() patterns.
Consider the following silent contracts:
1)
CKTsetup() invocations must be separated by a CKTunsetup() invocation
But CKTsetup() has an internal flag,
which will prevent re-invocation of DEVsetup()
But DEVsetup() will be called during sensitivity analysis,
bypassing this precaution. It is fatal if this will
cause another node allocation (CKTmk..()).
This commit tries to detect such cases.
(Note: many DEVsetup routines (all ?) have their CKTmk..() invocations
guarded to avoid reallocation of local nodes,
see commit f7f454c0a1
bug fix, fix the guard for device generated internal nodes (via CKTmkVolt())
)
FIXME:
DEVsetup() is seriously obfuscated by these guards.
If would be far better, if the sensitivity analysis
wouldn't sidestep into DEVsetup()
consider a device local variant of the CKTisSetup flag
2)
DEVunsetup() must delete all, each and every,
local allocated node in DEVsetup()
Otherwise CKTmk..() invocations in a following CKTsetup() will
return duplicate node numbers, effectively shorting device nodes.
This commit tries to detect incomplete CKTdltNNum() invocations.
3)
DEVunsetup() must not delete a netlist node.
This can easily happen in those devices which have optional ports,
which have code in DEVsetup() which copies node numbers to
local node variables.
This commit tries to detect such errors.
9 years ago
rlar
58874cc65e
xspice, implement "CALLBACK"
Allow to register a callback function in the cfunc.mod files,
which will be invoked in MIFdestroy.
Usefull to "free" memory which has been allocated locally in a cfunc.mod file.
9 years ago
rlar
d32a32bdc8
ifparm, #14/16, res.c, missing IF_ORQUERY|IF_REDUNDANT, introduce IOPQOR
9 years ago
rlar
cefb65507f
ifparm, #13/16, res.c, missing IF_SETQUERY in an alias entry, introduce IOPQR
9 years ago
rlar
8d3acddc7b
ifparm, #12/16, res.c, missing IF_PRINCIPAL in an alias entry, introduce IOPPR
9 years ago
rlar
614eebe944
ifparm, #11/16, res.c, missing IF_CHKQUERY for some alias entries, introduce IOPZR
9 years ago
rlar
102a6b7c77
ifparm, #7/16, missing IF_UNINTERESTING for some aliases, introduce IOPUR
9 years ago
rlar
4fc33eb656
ifparm, #6/16, missing IF_NONSENSE for some aliases, introduce IOPXR
9 years ago
rlar
b56c2a2504
ifparm, #5/16, missing IF_AC for some aliases, introduce IOPAR
9 years ago
rlar
eac26d741c
ifparm, #4/16, missing IF_REDUNDANT for some aliases, introduce IOPAPR
9 years ago
rlar
511389ad10
inpcom.c, introduce find_back_assignment()
9 years ago
rlar
5238f0b1cb
inpcom.c, find_assignment(), const'ify and declare extern
9 years ago
rlar
2809ccaa13
shrink scope of expr_w_temper
9 years ago
rlar
e35429a222
inpcom.c, introduce rem_tlist()
9 years ago
rlar
c600312d01
deploy devtlist/modtlist in struct circ
9 years ago
rlar
f2f2b3b09a
inp_evaluate_temper(), add struct circ argument
9 years ago
rlar
ab409ad62e
protect vec_free() and free_pnode() macro for use in non braced blocks
if ()
vec_free()
9 years ago
rlar
c7811a76df
ngspice/fteext.h, whitespace and spelling
9 years ago
rlar
cc15853b4f
ngspice/ftedefs.h, whitespace and spelling
10 years ago
h_vogt
d84387d449
CIDER, use controlled_exit(1) instead of exit(1)
10 years ago
rlar
33788f7052
remove excessive inp_evaluate_temper() prototypes
10 years ago
rlar
bd50814677
drop 'depreciated_skip..()'
10 years ago
rlar
7a42510cc0
const'ify some 'skip'ing functions
10 years ago
rlar
45ad60b738
rename gettok_nc() --> nexttok(), and functionalize it
9 years ago
Francesco Lannutti
43f24d6f22
rewrite cktsens.c in terms of the 'SMP' matrix interface
10 years ago
rlar
fb4f462388
SMPnewMatrix(), add 'size' to the function arguments
9 years ago
rlar
c3a92e2bb3
xspice, cleanup, move typedef over to the other ones
9 years ago
rlar
239780ebef
cleanup, use an array for struct GENinstance.GENnode
9 years ago
h_vogt
78ea2e1523
winmain.c, remove of fcn 'read' in Windows
9 years ago
rlar
2bafe98f17
winmain.c, etc, cleanup
9 years ago
rlar
90a205d36d
winmain.c, etc, whitespace cleanup
9 years ago
rlar
3a9ace82bb
winmain.c, etc, cleanup, rewrite obfuscated symbols
substitute in the whole source code:
"__stream" --> "stream"
"__pos" --> "pos"
"__s" --> "s"
"__n" --> "n"
"__c" --> "c"
"__format" --> "format"
"__ptr" --> "ptr"
"__size" --> "size"
"__path" --> "path"
"__mode" --> "mode"
"__offset" --> "offset"
"__whence" --> "whence"
"__arglist" --> "arglist"
"__buf" --> "buf"
"__fp" --> "fp"
"f_c_l_o_s_e" --> "win_x_fclose"
"f_e_o_f" --> "win_x_feof"
"f_e_r_r_o_r" --> "win_x_ferror"
"f_f_l_u_s_h" --> "win_x_fflush"
"fg_e_t_c" --> "win_x_fgetc"
"f_g_e_t_p_o_s" --> "win_x_fgetpos"
"fg_e_t_s" --> "win_x_fgets"
"fp_r_i_n_t_f" --> "win_x_fprintf"
"fp_u_t_c" --> "win_x_fputc"
"fp_u_t_char" --> "win_x_fputchar"
"fp_u_t_s" --> "win_x_fputs"
"f_r_e_a_d" --> "win_x_fread"
"f_r_e_o_p_e_n" --> "win_x_freopen"
"fs_c_a_n_f" --> "win_x_fscanf"
"f_s_e_e_k" --> "win_x_fseek"
"f_s_e_t_p_o_s" --> "win_x_fsetpos"
"f_t_e_l_l" --> "win_x_ftell"
"f_w_r_i_t_e" --> "win_x_fwrite"
"g_e_t_c" --> "win_x_getc"
"g_e_t_char" --> "win_x_getchar"
"g_e_t_s" --> "win_x_gets"
"p_e_r_r_o_r" --> "win_x_perror"
"p_r_i_n_t_f" --> "win_x_printf"
"p_u_t_c" --> "win_x_putc"
"p_u_t_char" --> "win_x_putchar"
"p_u_t_s" --> "win_x_puts"
"r_e_a_d" --> "win_x_read"
"s_c_a_n_f" --> "win_x_scanf"
"ung_e_t_c" --> "win_x_ungetc"
"vfp_r_i_n_t_f" --> "win_x_vfprintf"
"vfs_c_a_n_f" --> "win_x_vfscanf"
"vp_r_i_n_t_f" --> "win_x_vprintf"
"vs_c_a_n_f" --> "win_x_vscanf"
9 years ago
rlar
93d040703d
winmain.c, drop artefact "fgetchar", cleanup/emphasise disabled "freopen"
9 years ago
rlar
b5ccfca24b
implement option 'indverbosity' to control check of inductive systems
default is 2, maximum verbosity
option indverbosity=1
can be used to prevent check for
"incomplete set of couplings"
option indverbosity=0
can be used to avoid the check altogether
set indverbosity=INTEGER
or
.option indverbosity=INTEGER
works as well
9 years ago
rlar
97cdaae19f
variables, cp_usrvars(), be more explicit
lift uv2 return value up to the invoker of cp_usrvars()
10 years ago
rlar
ac336c9920
options.c, cleanup inp_getoptsc()
10 years ago
h_vogt
6a0a6071a0
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)).
10 years ago
rlar
b4119b94e3
xspice, cm.h, swallow warnings
10 years ago
rlar
9c2733db48
macros.h, cleanup SGN() macro
10 years ago
rlar
4c2e4d0c2f
drop SIGN(), SIGN(1.0,x) --> SGN(x)
10 years ago
rlar
ea5ad6b0e7
drop DC_ABS() and FTEcabs()
10 years ago
rlar
15f2c67968
use M_PI
10 years ago
rlar
9dcf62e1cd
drop home grown mathematical constants
10 years ago
rlar
cbf31c50c2
multi_line.h, drop some excess macros
10 years ago
h_vogt
ae80067fef
cmath2.c, new function stddev to calculate the standard deviation of all elements of a vector
10 years ago
h_vogt
0d50547ac1
commands.c: allow 10000 tokens for 'echo' and 'wrdata'
10 years ago
rlar
0d1b4d54c0
**/Makefile.am, fix "make dist"
10 years ago