Commit Graph

5751 Commits

Author SHA1 Message Date
Holger Vogt e0f5181bee Correct comment 2020-05-02 20:16:48 +02:00
Holger Vogt 8a1eff8e88 Add function 'remzerovec' to remove vectors of length 0
from current plot. Maybe of interest if you have option
savecurrents, write xx all, and ac generates length 0 vectors
2020-05-02 20:06:58 +02:00
Holger Vogt 3a00520071 Improve error message 2020-05-02 14:59:31 +02:00
Holger Vogt cbab726d69 use memcpy instead of strncpy to copy an exact amount of characters
remove unused function header
2020-05-01 18:49:45 +02:00
Holger Vogt 5e37955dc5 prevent buffer overrun by using snprintf 2020-05-01 18:48:18 +02:00
Holger Vogt 3c8a2d914d enable MINGW compilation by adding path information for config.h 2020-05-01 18:47:32 +02:00
Holger Vogt a32da32885 set parentheses for initializing struct 2020-05-01 18:46:44 +02:00
Holger Vogt 4bcc118406 exclude unused variable 2020-05-01 18:41:22 +02:00
Holger Vogt e2ddc5c06b exclude unused function 2020-05-01 18:40:56 +02:00
Holger Vogt 3c2bece87f prevent MINGW compiler warnings 2020-05-01 18:38:45 +02:00
Holger Vogt b0f99b900e Prevent crash if not enough nodes for standard MOS device 2020-04-28 18:59:18 +02:00
Holger Vogt 8ea51cc2f3 If command 'source' fails, don't move on with the script
(and od nonsens simulations), but stop ngspice and await
detaching (shared ngspice), or wait for user input.
2020-04-28 17:23:07 +02:00
Holger Vogt 2d4549ad96 There will be no default model paramaters without
the minimum model line:
J1 a b c JM1
.model JM1 njf
2020-04-28 17:18:57 +02:00
Holger Vogt 1a3738ccef Prevent warning by the macOS compiler 2020-04-27 10:58:06 +02:00
Holger Vogt a40f06de52 add #include <stdint.h> for SIZE_MAX 2020-04-27 10:27:20 +02:00
Holger Vogt e1a69e3fc5 controlled_exit only for WinGUI and shared ngspice 2020-04-27 10:27:00 +02:00
Jim Monte 0a8f700311 typo 2020-04-27 10:26:36 +02:00
Jim Monte 01574b91b5 remove unused 2020-04-27 10:26:22 +02:00
Jim Monte 7ead3fe552 rewrite load_opus(), add code model access to ngspice facilities,
add error message
2020-04-27 10:25:53 +02:00
Jim Monte 004b27bd92 remove path error, fix file extension 2020-04-27 10:25:35 +02:00
Jim Monte 654c9767d6 add fcn product_overflow() 2020-04-27 10:25:19 +02:00
Jim Monte a2b5d009db type cast 2020-04-27 10:25:00 +02:00
Jim Monte 9d714fe1bf #includes modified 2020-04-27 10:24:45 +02:00
Jim Monte 18d825e9c1 #includes modified 2020-04-27 10:24:22 +02:00
Jim Monte 381d4ec43d #includes modified 2020-04-27 10:23:59 +02:00
Jim Monte bd84e4be6c error messages 2020-04-27 10:23:33 +02:00
Jim Monte 7f82a4e036 FALLTHROUGH 2020-04-27 10:22:58 +02:00
Jim Monte 1d62ae2d97 type casts 2020-04-27 10:22:40 +02:00
Jim Monte ed8221afde Initialize pointer 2020-04-27 10:22:24 +02:00
Jim Monte 8d16e3e034 FALLTHROUGH 2020-04-27 10:21:59 +02:00
Jim Monte 41819a7226 FALLTHROUGH 2020-04-27 10:21:32 +02:00
Jim Monte 68e34f5a94 error messages, callback function moved 2020-04-27 10:21:14 +02:00
Jim Monte 2cac192814 initialize variables, add 'default:' 2020-04-27 10:20:48 +02:00
Holger Vogt f2e749e821 var redifinition removed 2020-04-27 10:20:10 +02:00
Jim Monte a10be03c75 FALLTHROUGH added 2020-04-27 10:19:32 +02:00
Jim Monte 6d3ab5945e variable redefinition removed 2020-04-27 10:19:13 +02:00
Jim Monte 82f832351b FALLTHROUGH added 2020-04-27 10:18:38 +02:00
Jim Monte ca2be5dd41 More efficient utf-8 to tchar conversion
remove 'graph' from SetColor
2020-04-27 10:18:10 +02:00
Jim Monte 3b0b944128 #include sequence, error message 2020-04-27 10:17:49 +02:00
Jim Monte b5ce669de5 fgets error 2020-04-27 10:17:22 +02:00
Jim Monte d96ea2490a EXITPOINT, memory leaks upon failure 2020-04-27 10:16:55 +02:00
Jim Monte b518d90509 EXITPOINT to delete malloced var in case of check failure 2020-04-27 10:16:37 +02:00
Jim Monte 9a83e6705c #include resource.h added, fcn parameter void 2020-04-27 10:16:19 +02:00
Jim Monte 3a72b8e562 const qualifier, graph removed from SetColor, 2020-04-27 10:16:02 +02:00
Jim Monte a3a8bc702d type modifier, parameter graph removed from SetColor() 2020-04-27 10:15:32 +02:00
Holger Vogt 5b98b1e723 typüe modifier 2020-04-27 10:15:01 +02:00
Jim Monte c8bf3a776c error message 2020-04-27 10:14:13 +02:00
Jim Monte 19318929c1 modifier const, error message if 'system' fails 2020-04-27 10:13:50 +02:00
Holger Vogt 9af5e20eaf formatting 2020-04-27 10:13:11 +02:00
Jim Monte 1e938f91b1 Error message if printing fails 2020-04-27 10:12:36 +02:00
Holger Vogt e3441044dd formatting 2020-04-27 10:12:19 +02:00
Holger Vogt 3ad93a50e8 Add EXITPOINTs, if reading inputs etc. fails 2020-04-27 10:09:30 +02:00
Holger Vogt d761ed9c79 comment on parse tree evaluation 2020-04-25 10:30:21 +02:00
Holger Vogt c520a9a4b9 if lt(a) comp mode is set, replace 'noiseless' by 'noisy=0' in resistors 2020-04-25 10:30:05 +02:00
Holger Vogt 74dbb1e843 Commit [88653f] Fixed assorted compiler warnings, memory leaks, etc.
branch beta_jdm by Jim Monte
2020-04-25 10:29:16 +02:00
Holger Vogt ca05aa318b Commit [88653f] Fixed assorted compiler warnings, memory leaks, etc.
branch beta_jdm by Jim Monte
2020-04-25 10:29:00 +02:00
Holger Vogt 779bd0e6e2 Commit [88653f] Fixed assorted compiler warnings, memory leaks, etc.
branch beta_jdm by Jim Monte
2020-04-25 10:28:49 +02:00
Holger Vogt a084f4f2b5 avoid type conversion warning size_t -> int 2020-04-25 10:28:34 +02:00
Holger Vogt d3866a6315 Spice_Notice is never NULL 2020-04-25 10:28:07 +02:00
Holger Vogt 0cd33d3fbb correct zeroing of allplots array 2020-04-25 10:27:49 +02:00
Holger Vogt fdbcdb5b7d apply const qualifier appropriately 2020-04-25 10:27:28 +02:00
Holger Vogt 814cadf36c remove const declaration to make ASRCsetup compatible with .DEVsetup 2020-04-25 10:25:42 +02:00
Holger Vogt 050cea146e correct zeroing of allnodes array 2020-04-25 10:24:25 +02:00
Holger Vogt 833751ab3f fix typo 2020-04-25 10:24:02 +02:00
Holger Vogt b3fdff7bc0 Spice_Build_Date is never NULL 2020-04-23 13:30:55 +02:00
Holger Vogt 1f8b179ef9 typo 2020-04-21 20:02:31 +02:00
Holger Vogt 572daed2ec Remove '.backanno' if LT campatibility mode is set 2020-04-21 20:02:18 +02:00
Holger Vogt b701a6347d cktislinear(): coupling of inductors is also linear 2020-04-21 20:02:05 +02:00
Holger Vogt bad2a4e467 Guard XSPICE plot switching against circuit being removed already 2020-04-21 20:01:49 +02:00
Holger Vogt ae2d207344 don't forget to free jobs->statistics[i] 2020-04-21 20:01:06 +02:00
Holger Vogt 3b5c272096 free mor data in jobs struct. Avoid memory leak upon 'quit' command. 2020-04-21 20:00:49 +02:00
Holger Vogt bc0cef9371 remove all data enlisted in the jobs structure 2020-04-21 20:00:35 +02:00
Holger Vogt bbb0007466 add function EVTswitch_plot() to switch the event data
according tothe (analog) plot. Called from plot_setcur()
in vetors.c, when command 'setplot xxx' is given.
2020-04-21 20:00:17 +02:00
Holger Vogt d72b4c415f get the plot name into the event job 2020-04-21 19:59:58 +02:00
Holger Vogt b356b00014 Fixes bugs 476, 486: Reset code model init flag,
required when any run is called a second time.
2020-04-21 19:59:43 +02:00
Holger Vogt c7e9c3884e pow(a,b) function derivative: special case also for a=const
with enhnaced efficiency
introduce TRACE and TRACE1 for debugging
2020-04-21 19:59:29 +02:00
Holger Vogt f5ebea5e9f use internally predefined pow() function 2020-04-21 19:59:11 +02:00
Holger Vogt a1a37d84a7 define is no longer needed with recent VS 2019 2020-04-21 19:58:55 +02:00
Holger Vogt d8085ed594 guard against ft_curckt->ci_ckt == NULL 2020-04-21 19:58:36 +02:00
Holger Vogt 11b22c8f46 showmod will no longer crash ngspice if run after some error 2020-04-21 19:58:07 +02:00
Holger Vogt 6ab1f8b2d6 add mfg to the .model tokens to be ignored during altermod 2020-04-21 19:57:47 +02:00
Holger Vogt 93a76d8e21 add a limit exp(arg) to the exp function. If arg is larger
than 14 (arbitrarily selected), continue with linear response.
2020-04-21 19:57:19 +02:00
Holger Vogt 87101cd26d no double parens 2020-04-21 19:56:55 +02:00
Holger Vogt 55f3776fc1 add a warning if file with modified parameters has not been found.
Then ignore the altermod command.
2020-04-21 19:56:27 +02:00
Holger Vogt 4c80a1ab7d fix a bug, use ciprefix instaed of cieq, cieq led to
always FALSE if statement
2020-04-21 19:55:42 +02:00
Holger Vogt a7e664a5c2 fix bug no. 484, correct TREALLOC usage 2020-04-21 19:55:04 +02:00
Holger Vogt 1c2dd967da During setup, ASRC (aka B source) uses ckt->CKTrhsOld[node->number]
for initial evaluation. .nodeset or .ic have never set CKTrhsOld,
so initalization for B source failed.
We still have to check why .nodeset and .ic are set two times,
first in CKTic(), then in CKTload()!
2020-04-21 19:54:41 +02:00
dwarning d735c60183 no size_t cast for GlobalMemoryStatusEx result 2020-04-21 19:52:05 +02:00
Holger Vogt 7889b5d540 re-add the icon to the top header of the ngspice GUI 2020-04-05 10:22:13 +02:00
Holger Vogt c4e23989f3 Don't us atexit(), but delete memory during 'quit' 2020-04-04 14:22:04 +02:00
Holger Vogt c2513af3e8 remove code that leads to crash if tran simulation is
interrupted and reset is sent (KiCAD)
2020-04-04 14:21:49 +02:00
Holger Vogt 1a9c1b8c24 remove unused code snippet 2020-04-04 14:21:33 +02:00
Holger Vogt e28cae42f1 enable both new gmin and dyngmin 2020-04-04 14:21:15 +02:00
Holger Vogt 673a14afdb more conservative op calculation:
start with new gmin, if this fails, fall back to dynamic gmin,
then source stepping
2020-04-04 14:20:45 +02:00
Holger Vogt 2f31bd5c2a avoid compiler warning 2020-04-04 14:20:16 +02:00
Holger Vogt 9edc436ef7 remove SIGINT handling which was not functional
add SIGSEGV handler which may be excluded by
set nosighandling
2020-04-04 14:19:55 +02:00
dwarning 8ca33bc8f5 VDMOS correct thermal diode contribution in reverse operation 2020-04-04 14:19:38 +02:00
dwarning b75791c87d VDMOS include body diode into power calculation 2020-04-04 14:19:21 +02:00
dwarning 897165d026 VDMOS change default value for Rthca 2020-04-04 14:19:03 +02:00
dwarning f19da3bd79 case correction for library name 2020-04-04 14:18:38 +02:00