Commit Graph

4027 Commits

Author SHA1 Message Date
Holger Vogt 5387c8e609 Enable using hashtables also for compiling with gcc. 2026-06-07 14:26:23 +02:00
Holger Vogt f149f7a506 Add a hash table paramhash to store the .agemodel model parameters. 2026-06-07 14:26:23 +02:00
Holger Vogt 48cbcfe3db Read the agemodel data, put them into global array agemods 2026-06-07 14:26:22 +02:00
Holger Vogt d263fba97e Always call the function.
Inside it will be decided, depending on not having ngbehavior=de,
to disregard the agemodels.
2026-06-07 14:26:21 +02:00
Holger Vogt e74b7e67f4 Add function readdegparams in file inpdeg.c 2026-06-07 14:26:21 +02:00
Holger Vogt 1bca7095c8 Add a compatibility mode 'de' for degradation simulation. 2026-06-07 14:26:21 +02:00
Brian Taylor abcbcbd724 Completed and cleaned up memory leak fixes in:
inpc_probe.c outitf.c inpcom.c niiter.c
cherry-pick of this one commit should be OK.
2026-05-19 10:50:35 +02:00
Holger Vogt 6b7cde537d Reset plot list to const plot. 2026-05-11 15:10:21 +02:00
Holger Vogt 3dce275b16 reset time to 0 upon initialisation of shared ngspice 2026-05-11 15:09:32 +02:00
Holger Vogt 95cf8738da Avoid compiler warning (VS2022) 2026-05-10 16:36:35 +02:00
Giles Atkinson 7cba7ddee0 Allow building without soundfile libraries. 2026-05-10 15:31:58 +02:00
Giles Atkinson 785be3194c Fix two bugs in the "let" command:
"let plot.vec = ..." fails when creating a new vector;
 if the new vector does not exist, "let" may modify a "const" value.
It is likely that existing scripts rely on the second one,
so variable "sanelet" must be set to enable the fix.
2026-05-10 15:31:48 +02:00
Giles Atkinson 954242616d Filter duplicate entries in sourcepath. 2026-05-10 15:31:44 +02:00
Giles Atkinson 93567da529 Do not report an error when correctly indexing a length-1 vector. 2026-05-10 15:31:40 +02:00
Giles Atkinson 07ca1354eb Disable output redirection for "let" so that normal comparison
operators may be used.
2026-05-10 15:31:30 +02:00
Giles Atkinson 06afc7c1da Command "setplot new" may set name and description of the new plot. 2026-05-10 15:31:25 +02:00
Holger Vogt 3f3194babf Update to meas: stdout-->stderr, remove unusable error message,
reported by Dmitriy
2026-05-04 16:54:53 +02:00
Holger Vogt 70a1c3fc6e Improve error messages.
Oversampling default is 4.
2026-04-30 13:06:30 +02:00
Holger Vogt f3a243fd1f Make types compatible, change from int to size_t 2026-04-30 13:06:30 +02:00
Holger Vogt d71146a37a Formatting
Replace tabs by spaces
2026-04-30 13:06:30 +02:00
Holger Vogt 9f2f8bd567 Oversampling default is 1 2026-04-30 13:06:30 +02:00
Holger Vogt d26c19f984 Remove source of memory errors: read and write beyond boundaries
caused segfaults.
2026-04-30 13:06:29 +02:00
Holger Vogt f4c56990f8 prevent a segfault when TSTOP less than TSTART in tran command 2026-04-30 13:06:28 +02:00
Holger Vogt 17665eb843 allow other simulation types, e.g. ac
prevents crash
2026-04-30 13:06:28 +02:00
Holger Vogt 44a625e4df add dot commands .sndprint, .sndparam in inp.c 2026-04-30 13:06:28 +02:00
Holger Vogt 50c5a8e2ea Remove unused 2026-04-30 13:06:27 +02:00
Holger Vogt ab32d47860 replace exit() by controlled_exit() 2026-04-30 13:06:26 +02:00
Holger Vogt 93dbc846a3 declare functions and variables static, if so 2026-04-30 13:06:26 +02:00
Holger Vogt 3d82891a87 reformat, set better error message for src_process() 2026-04-30 13:06:26 +02:00
Holger Vogt feb89e07dc add progress report when entering wav output stage 2026-04-30 13:06:26 +02:00
Holger Vogt 8c157b887e add commands sndprint, sndparam with
associated functions com_sndprint and com_sndparam
2026-04-30 13:06:25 +02:00
Holger Vogt fd254d7620 add dotcards .sndparam and .sndprint 2026-04-30 13:06:25 +02:00
Holger Vogt e1e0d08ad5 add files sndprint, vsjack 2026-04-30 13:06:25 +02:00
Holger Vogt d20315309f Do not replace GND by 0 f if GND is used inside of the subcircuit
and is referenced on the .subckt line, and ps is set.
This will allow using this subcircuit with non-zero reference
voltage.
2026-04-30 11:26:17 +02:00
Holger Vogt 51ebf841ac Make the memory printout more portable and readable.
Avoid integers, uses doubles.
2026-04-28 20:17:01 +02:00
Holger Vogt cb1a29b8c0 If newcompat.ki is enabled, allow /gnd and /0 (local ground symbols
in KiCad and replace them by true ngspice ground 0 .
2026-04-28 16:19:12 +02:00
Holger Vogt 9ef52c10b9 newcompat.ki has already been set in sharedspice.c 2026-04-28 16:17:35 +02:00
Holger Vogt 7cf526ce4c Update memory check:
Only for WINDOWS baile out if requested memory is larger than existing.
For other OSs issue a warning, but then move on.
2026-04-28 11:50:46 +02:00
Holger Vogt 2c0aabd760 Remove linker warnings (VS2022) 2026-04-25 11:46:35 +02:00
Holger Vogt 1636ca3ce1 Show that the external process 'gnuplot' is running (Windows only) 2026-04-24 23:30:00 +02:00
Holger Vogt 597358f4a8 remove linker warning. 2026-04-24 15:58:05 +02:00
Holger Vogt 08accebcd3 Move the memory check to a place where it is called once only per plot 2026-04-24 15:21:34 +02:00
Holger Vogt 215dd0e136 Status display 'shell', if shell command takes its time. 2026-04-24 14:47:15 +02:00
Holger Vogt 21b3131e12 Implement getrusage() with ru_maxrss permanently for Apple ARM. 2026-04-18 13:27:07 +02:00
Holger Vogt 7859aa0db9 Updating the 'available memory' measurement for Apple ARM 64 bit 2026-04-17 17:10:31 +02:00
Holger Vogt afd4eb64ed Fix a bug introduced by yesterday's commit
8abfb5aeb0/
2026-04-07 22:25:27 +02:00
Holger Vogt 8abfb5aeb0 Remove unused ft_gidb
Add debug ft_shvecsearch
Make ft_codemodelerror more verbose.
2026-04-06 14:15:42 +02:00
Giles Atkinson ae4a05158b Ugly fix for failing MacOS builds on github: move parse-binon.y to the top.
BUILT_SOURCES seems not to work.
2026-04-01 09:53:34 +01:00
Giles Atkinson e42a9e6b5c Fix excessive forcing to lower-case in pure script files.
Add string comparisons as protected commands so they can be case-sensitive.
2026-04-01 07:35:20 +01:00
Giles Atkinson 3586cbcbea Fix crash when a "*ng_script_with_params" script is called
from a control section.
2026-04-01 07:35:20 +01:00