Brian Taylor
57dd3342ef
Enable CIDER with KLU for DC, OP, and TRAN analyses. Small signal AC analysis is not yet supported for CIDER complex valued device KLU matrices. The examples/cider testcases produce printed simulation result values which have slight differences between Sparse and KLU. Differences are probably expected and in a few cases are ~1-2%, sometimes a little more. This should be good enough for most CIDER analyses. Francesco did a good piece of work. Runtimes are significantly shorter with KLU.
7 months ago
Holger Vogt
f9b7455d10
Proper conversion bool to int
1 year ago
Holger Vogt
deb3cd9809
Replace all BOOLEAN, BOOL, _Bool by bool
Remove all #undef bool (set in conjunction with #iclude <Windows.h>)
1 year ago
Brian Taylor
0555c5d9c7
Make previous KLU support check more transparent.
2 years ago
Brian Taylor
295f212de8
When CIDER is detected, until KLU works with CIDER, print Error: CIDER simulation is not (yet) supported with 'option klu'. Use 'option sparse' instead. and then call controlled exit(1).
2 years ago
Francesco Lannutti
fe89da2b2c
Getting rid of SPARSE for Initial Circuit Matrix creation. Now KLU is totally independent from SPARSE. This opens up the interface for other solvers as well
SPARSE can still used through '.options sparse', but it isn't possible to switch from KLU to SPARSE and viceversa at run-time
6 years ago
Francesco Lannutti
2dcc83510b
KLU Integration from scratch #5 , devices
12 years ago
Brian Taylor
f39f89ea9b
Add DEVmodDelete functions to reduce memoory leaks in Cider models. The model memory was not freed during remcirc or quit. In the future, some of the code duplication could be refactored. The cmosinv.cir is now down to just 1 memory leak.
3 years ago
dwarning
26979079d4
prevent few compiler warnings
4 years ago
Brian Taylor
36313d59f3
Use the current point number as the single digit index for Cider 2D ascii save files. This conforms to the normal usage with other types of ascii rawfile. The numd parser table entry for ic.file now has the correct IF_STRING type.
5 years ago
Holger Vogt
8eeb924460
CIDER: Enable printing either binary or ascii data output to file.
Patch provided by Brian Taylor, see
(https://sourceforge.net/p/ngspice/mailman/message/37309841/ )
5 years ago
Holger Vogt
b7012065ae
remove compiler warning by setting variables to 0
6 years ago
rlar
45a70b3a53
rewrite, use enum instead of #define sequences
see branch "rewrite-defines2enum"
8 years ago
rlar
d981fb331b
spicelib/devices/*, drop empty destroy functions
8 years ago
rlar
cd1bbf2003
rewrite, use designated initializer for SPICEdev initialisation
8 years ago
rlar
2c9bfecbad
GENmodel, GENinstance, change layout, #3/4, coccinelle semantic patch
8 years ago
rlar
2dcb79d09c
GENmodel, GENinstance, change layout, #1/4, coccinelle semantic patch
8 years ago
rlar
1befa488f6
DEVdestroy(), change API, #1/2, coccinelle semantic patch
8 years ago
rlar
b29ad51a6c
DEVdestroy(), move code over to DEVmodDelete() and DEVdelete()
This patch itself is not valid until all invokers of DEVdestroy()
(currently this is CKTdestroy() exclusively)
are rewritten to invoke DEVmodDelete() and DEVdelete()
8 years ago
rlar
b17ee71576
DEVmodDelete(), change API, #1/2, coccinelle semantic patch
8 years ago
rlar
e0f1e5a3de
DEVdelete(), change API, #1/2, coccinelle semantic patch
8 years ago
rlar
a8e440eabe
whitespace cleanup, comments cleanup, line wrap
8 years ago
rlar
a7cc37b2e2
ifparm, fix numdev too
9 years ago
rlar
00c743c37d
src/spicelib/devices/*/*def*.h, declare external node variables const
for almost all other external nodes (notable exception "txl")
src/spicelib/devices/*/*def*.h, declare external node variables const
1) The compiler shall emit an error message if we still mess around
with external node numbers.
2) To mark which elements of the instance struct are meant to be set
externally when parsing the netlist
These "external" node variables are exclusively set via the
overlay struct GENinstance, member GENnode[]
We shall not mess around with these "external" node variables
because it would get rather difficult to avoid bugs considering
re-invocation of the XXXsetup() routine.
This gets interesting for devices with optional ports,
which get copied around depending on the amount of connected ports.
9 years ago
rlar
4d79617cf1
spicelib/devcies/*dest.c, rewrite DEVdestroy() functions
10 years ago
rlar
d298d5cc2f
use memset() instead of deprecated bzero()
10 years ago
rlar
141ed61ec8
use memcpy() instead of deprecated bcopy()
10 years ago
rlar
7aa454e5b4
rewrite, using tprintf()
12 years ago
Henrik Forsten
3794c1eb20
mark end of struct GENmodel overlay
13 years ago
dwarning
bf9ad0bdfd
introduce new SPICEdev operation `DEVsoaCheck()'
13 years ago
rlar
ccb600f3c1
drop `NIL' macro
13 years ago
rlar
14687910d9
rewrite `TSTALLOC()' macro for auto indentation
checked for object code invariance
13 years ago
Francesco Lannutti
08ec219417
remove all .cvsignore files
14 years ago
Francesco Lannutti
c23bd59c44
removed ancient PARALLEL_ARCH feature
removed variables
ARCHme
ARCHsize
removed functions
SMPcombine()
SMPcCombine()
CKTpartition()
removed files
spcombin.c
cktpartn.c
removed struct slots
STATcombineTime
STATtranCombTime
STATacCombTime
GENowner
<MODEL>owner
14 years ago
rlar
cb0a48801d
introduce AM_CFLAGS = $(STATIC)
14 years ago
rlar
14f884729c
raw_write() always fopen("wb"), even on windows use "\n" line termination
14 years ago
rlar
e598598d70
Reverting "NUMDdump(): add binary mode"
This reverts commit 40e8f868da
14 years ago
h_vogt
40e8f868da
NUMDdump(): add binary mode
fopen() with wb
write operating point (external state) for true binary output
14 years ago
rlar
afa1371746
#3/6 config.h --> ngspice/config.h, AM_CPPFLAGS
14 years ago
rlar
4ca58067a2
#2/6 config.h --> ngspice/config.h, #include's
14 years ago
rlar
0b5042e7da
remove CVS `Id',`log' etc. keyword incantations
15 years ago
rlar
10346e055c
#1/4 #include <ngspice/...> --> #include "ngspice/..."
15 years ago
rlar
d26015586c
#1/7 use a subdirectory "ngspice" for includes to create a uniq namespace
15 years ago
rlar
23056573d8
code cleanup, drop NULL pointer casts
15 years ago
rlar
05441d5823
Nr 5/5 (x = ...) == NULL , swallow warnings
16 years ago
rlar
ad8ad56955
Nr 3/5 (x = ...) != 0 , swallow warnings
16 years ago
rlar
abb87a6115
rename `IGNORE()' --> `NG_IGNORE()'
16 years ago
rlar
80286e0032
pour `IGNORE()' all over the source
16 years ago
rlar
d0dba768f8
change the type of a bunch of variables from `int' to `size_t'
16 years ago
rlar
f7bd3f56c8
change some model parameters from IF_REAL to IF_INTEGER
16 years ago