Commit Graph

6577 Commits

Author SHA1 Message Date
Holger Vogt f585807085 re-enable V source with parameter EXTERNAL
Fix bug #463
2020-03-15 08:50:59 +01:00
Holger Vogt 23cef80914 option not needed for convergence 2020-03-15 08:50:59 +01:00
Holger Vogt b699c7fad8 add the PSPICE vswitch S_ST variant,
which resolves to the classical ngspice sw switch
2020-03-15 08:50:59 +01:00
Holger Vogt 9d53780992 allow vec_get to verify vectors if their names are quoted by "" 2020-03-15 08:50:59 +01:00
Holger Vogt 987cc0aa86 another preliminary patch for macOS 2020-03-15 08:50:58 +01:00
Holger Vogt 7680be7312 stub to enable compilation on macOS,
memory info for macOS is currently not available.
2020-03-15 08:50:58 +01:00
dwarning fa8a77343b format line with LF 2020-03-15 08:50:58 +01:00
Holger Vogt b7012065ae remove compiler warning by setting variables to 0 2020-03-15 08:50:58 +01:00
Holger Vogt a9f83f3445 remove two small memory leaks 2020-03-15 08:50:58 +01:00
Holger Vogt 58901fe898 remove spurious error message 2020-03-15 08:50:58 +01:00
Holger Vogt 48e998f19b out-of-interval examples added 2020-03-15 08:50:58 +01:00
Holger Vogt 7ae76f0f51 update to the .measure and meas error messages:
remove crash uipon buggy inputs
add buggy example input file
unify fcn returns: 0 is OK, 1 is bad
Improve on error message for bad syntax
2020-03-15 08:50:58 +01:00
dwarning 484c13c008 Add missing files for resources 2020-03-15 08:50:58 +01:00
Holger Vogt e9603dcdeb enable inp_dodeck() to return an error state,
if error, inp_spsource() will return error as well
2020-03-15 08:50:57 +01:00
Holger Vogt 651ba72344 return immediately if ckt is NULL 2020-03-15 08:50:57 +01:00
Holger Vogt 51f80abe00 if inp_spsource() returns with an error code, emit a message 2020-03-15 08:50:57 +01:00
Holger Vogt f9307d0beb enable returning inp_spsource() with an error code 2020-03-15 08:50:57 +01:00
Holger Vogt e6bbedf203 example for ~(~v(9)&v(8)) 2020-03-15 08:50:57 +01:00
Holger Vogt 0c74820821 enable PSPICE compatible ~(~v(9)&v(8)) 2020-03-15 08:50:57 +01:00
Holger Vogt 46adeb5eaa plug memory leaks for the 'plot' command 2020-03-15 08:50:57 +01:00
Holger Vogt 6c3b14e396 make simulation faster, allow batch mode 2020-03-15 08:50:57 +01:00
Holger Vogt 573b270b6d Give a better, modern name for this type of display 2020-03-15 08:50:57 +01:00
Holger Vogt b1be546939 User expects an empty input line, not a text that has to be deleted befopre writing 2020-03-15 08:50:57 +01:00
Holger Vogt 966b69090d use only TMALLOC and TREALLOC for memory allocation 2020-03-15 08:50:56 +01:00
Holger Vogt a39808d880 update to Visual Studio 2019 2020-03-15 08:50:56 +01:00
Holger Vogt 53613f4e69 deprecated gets() -> fgets() 2020-03-15 08:50:56 +01:00
Holger Vogt 85e0a08cff error message even if pNAME is not defined 2020-03-15 08:50:56 +01:00
Holger Vogt 39ce1f77d2 patch provided by Vito (see
https://sourceforge.net/p/ngspice/discussion/133842/thread/31aa24261e/ )
2020-03-15 08:50:56 +01:00
Holger Vogt 2040d45b1d O1 -> O0 for debug
Patch #71 provided by Taras Rosa
2020-03-15 08:50:56 +01:00
Holger Vogt 09f829b863 Further improvement of error message im 'meas' 2020-03-15 08:50:56 +01:00
Holger Vogt 94d5ad312e Improve error messages for the 'meas' command. 2020-03-15 08:50:56 +01:00
Jim Monte d4088c896a Restored command arguments accidentally deleted. 2020-03-15 08:50:56 +01:00
Jim Monte 4b145ddf5e Added #include <stdio.h> to define FILE. 2020-03-15 08:50:55 +01:00
Jim Monte 06ebf80983 Modified search for init file so that it searches both <HOME> and <USERPROFILE> if both are defined. 2020-03-15 08:50:55 +01:00
Jim Monte 2068c4fffb Added -D/--define option to define a variable from the command line. 2020-03-15 08:50:55 +01:00
Jim Monte 372fe2a5e7 Opened binary files for writing using "wb" in all cases 2020-03-15 08:50:55 +01:00
Jim Monte 21f3eb74b8 Added basic help messages in addtion to reference to web pages 2020-03-15 08:50:55 +01:00
Jim Monte de4788cfe5 Added conjugate function conj(). 2020-03-15 08:50:55 +01:00
Jim Monte a7946474fa Additional freeing of device-dependent information for bug #419 and related bugs. 2020-03-15 08:50:55 +01:00
Jim Monte d3343b1791 Removed redundant macro 2020-03-15 08:50:55 +01:00
Jim Monte b274366287 Minor formatting and punctuation change. 2020-03-15 08:50:55 +01:00
Jim Monte 0cf53a34b2 Fixed resolution of ~ to home directory. (Bug #405) Also fixed potential buffer overruns in glob expansion 2020-03-15 08:50:54 +01:00
Jim Monte ce5410d33f Fixed checking for redirection tokens 2020-03-15 08:50:54 +01:00
Jim Monte cec6a8edd3 Fixed access of freed memory when reporting an error. 2020-03-15 08:50:54 +01:00
Jim Monte 8141a634d7 Fixed several issues related to plotting and vector lifetimes and made ownership of vectors clearer. The issues in bugs 419, 423, 425, and 426 were related and were addressed here. 2020-03-15 08:50:54 +01:00
Jim Monte 57ffe1769f Fixed "phantom vector" issue with plots and crash when plots are resized. See bugs #419 and #423 for details. Also several parameters were changed from char * to const char * in the plotting functions. 2020-03-15 08:50:54 +01:00
Jim Monte 9d2c105942 Fixed bug with 255 card deck entered using circbyline 2020-03-15 08:50:54 +01:00
Jim Monte e1ec2a21dd Added error recovery when invalid foreach statement found 2020-03-15 08:50:54 +01:00
Jim Monte 690b7730fe Fixed memory leak when empty word found. 2020-03-15 08:50:54 +01:00
Jim Monte 7617bbfae9 Reduced the number of configuration changes that must be made when a new version of ngspice is released. 2020-03-15 08:50:54 +01:00