Holger Vogt
b62bb20e6f
Increase the allowable node name length from 24 to 256.
Enable safe copying, no user induced buffer overflow.
2 years ago
Holger Vogt
10756111bf
Fix a bug when deleting the memory. With the first call
to mem_delete() all the hash table is deleted, a second
call to mem_delete() does not have any further effect, so
has to be avoided.
2 years ago
Holger Vogt
22a10c0e44
typo
2 years ago
Holger Vogt
4da3dc51fd
If compatmode ps or lt: add a series resistance (100µOhms) to
diodes, when RS is not given or 0:
Improves convergence in behavioural models for op evaluation.
2 years ago
Holger Vogt
2a005292db
Sparse 1.3 is the matrix solver if no option (sparse or klu) is given.
KLU is selected by 'option klu'
If both 'option klu' and 'option sparse' are given,
the last one executed determines the solver.
'option sparse=0' de-selects spares, i.e. selects klu.
'option klu=0' de-selects klu, selects sparse.
'option klu=1' has the same meaning as 'option klu'.
'option sparse=1' has the same meaning as 'option sparse'.
2 years ago
Giles Atkinson
f6f7319792
Add null-pointer checks to some code that crashed when trying
to .print results from a non-existent analysis. Also remove the
troublesome .plot and .print lines from two examples.
2 years 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
Holger Vogt
d27b888f13
Noise simulation is buggy when using the KLU solver. Thus for now it is disabled.
Use 'option sparse' instead.
2 years ago
Pascal Kuthe
5223f4b27d
fix(hicuml2): ensure flicker noise power is always stored in state vec
2 years ago
Holger Vogt
efdf332061
Prevent a crash if hash model table was not generated,
e.g. due to missing valid models.
2 years ago
Holger Vogt
f26dda8616
Formatting
2 years ago
Holger Vogt
8ef0aece58
During setup of the models thre have been search scans in the
linked model list modtab. The time used here grows approx.
quadratically with the number of models. If the numbers get large,
e.g. with the IHP Open PDK, setup time make simulation impractical.
Therefore the linked list modtab has been enhanced by a hash table
modtabhash, which allows linear search time and makes simulation
of a 200k transistor circuit with IHP PDK possible. Already
the setup time for 15k transistor circuits has been reduced.
2 years ago
Holger Vogt
9702557f81
Evaluate function gauss() in B sources. This is required when
in .model files the tokens 'temper' and gauss() coexist, because
then the B Source function parser is applied.
2 years ago
Holger Vogt
eb36084700
re-formatting (indentation, tabs removed)
3 years ago
Holger Vogt
ecb416b800
This patch fixes a bug when shared library uses XSPICE:
Don't subtract delta twice, when breakpoint is active
and step is rejected.
https://sourceforge.net/p/ngspice/patches/106/
Thanks to Vyacheslav Shevchuk
3 years ago
Holger Vogt
4f79105b06
Add comment
3 years ago
Holger Vogt
233f9daba4
Remove unused instance parameter ic (initial condition of controlling source).
3 years ago
Holger Vogt
daa58f4125
Fix previous commit [acb7f2]
Allow frequency 0 Hz (make check will do agian).
3 years ago
Holger Vogt
acb7f2cd97
Make .ac error messages more verbose, prevent some crash,
enable default values.
3 years ago
dwarning
4368790c5d
remove compiler warning wrt. prototypes
3 years ago
Holger Vogt
b7993bb530
Formatting cktpzstr.c
3 years ago
Holger Vogt
dfeb0bdb4e
Improve error message on obsolete dot command
3 years ago
Holger Vogt
64c29e667e
Improve error message on unimplemented dot command
3 years ago
Holger Vogt
3b89410b8f
Slight cosmetics in comment.
3 years ago
Holger Vogt
7a646c0a12
If 'strict_errorhandling' is set, bail out if operating point is not found
3 years ago
Holger Vogt
ad23146544
Don't check continuously for autostop, only when option flag is set
This speeds up simulations with simple device evaluation, but many
time stepps.
3 years ago
Holger Vogt
8837132f29
Fix d0fc344bf
("Shorten the ngspice message when performing operating point evaluation.
The average user often complained about useless 'info'.
The old output is now available when 'set ngdebug' in .spiceinit.",
2023-08-19)
Return with 0 if optran has been successful.
3 years ago
Holger Vogt
d0fc344bf9
Shorten the ngspice message when performing operating point evaluation.
The average user often complained about useless 'info'. The old output
is now available when 'set ngdebug' in .spiceinit.
3 years ago
Francesco Lannutti
cab5e8cd37
Added the case of VSRCport to VSRC model for KLU
3 years ago
Francesco Lannutti
d68e83be78
Fixed VBIC model for KLU
Fixed SMPfindElt messages
3 years ago
Francesco Lannutti
4427a1f6dd
Rebased upon pre-master branch
3 years ago
Francesco Lannutti
ae83b7c807
Added KLU support to HICUM model
4 years ago
Holger Vogt
d6aeb6cd94
Set up the matrix according to branch KLU-6+11-rebase-master-28_10_2020
All cpl example files from ngspice\examples\TransmissionLines are o.k.
4 years ago
Francesco Lannutti
02e7c1c5b0
KLU branch rebased upon master @ 3 Feb 2022
Some merge conflicts have not been solved yet
Please look for >>>> HEAD if you want to solve them
4 years ago
Francesco Lannutti
b900527341
Fixed KLU binding for VDMOS
5 years ago
Francesco Lannutti
2bfd22c8f9
Fixed KLU binding for BJT
5 years ago
Francesco Lannutti
1ee798ec9d
Fixed CKTsetup for KLU when XSPICE is used
6 years ago
Francesco Lannutti
6ccaacaf1d
Added the support for KLU to VBIC Self Heating
6 years ago
Francesco Lannutti
7048a24b74
Added the KLU support to Noise Analysis
6 years ago
Francesco Lannutti
73626c62f8
Add KLU support to VDMOS
6 years ago
Holger Vogt
98dd7da1c4
fix a memory leak in ASRC
6 years ago
Holger Vogt
d5434a2df2
fix a memory leak
ckt->CKTmatrix is now malloced, so has to bee freed as well
6 years ago
Francesco Lannutti
0b7dc09fc1
Fixed the accounting statistics for SPICE and CIDER about number of elements in KLU
6 years ago
Francesco Lannutti
88074a23c9
Fixed 2 files due to rebasing KLU branch on the master branch - 8/7/2020
6 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
4d00b67b4d
Used IF_REAL instead of IF_FLAG
6 years ago
Francesco Lannutti
49f6444957
Added "klu_memgrow_factor" option to control the KLU memory grow factor
6 years ago
Francesco Lannutti
658f449c9b
Fixed the VSRCbindCSC routine
6 years ago
Francesco Lannutti
f487720b10
Fixed BJTbindCSC routine
6 years ago