caand
130d96ff2f
Re-instate timediff(), needed in winmain.c
2020-08-23 15:59:10 +02:00
caand
fc445c2b0a
Fix for time measurement. No dependence on OMP, correct functions are used for each purpose.
...
Elapsed time can use gettimeofday(), times(), ftime().
CPU time can use getrusage(), times() and fall back to elapsed.
Replaced HAVE_UTIMES with HAVE_TIMES - probably typo and reason
HAVE_TIMES was missing.
2020-07-28 18:01:46 +02:00
Holger Vogt
5854344d20
Streamline the compatibility flag generation
2020-07-25 23:46:26 +02:00
Holger Vogt
4be216d4e3
If 'set ngbehavior=ki' in .spiceinit or flag 'kicad' on the plot line:
...
Add " around vector names containing character /
Numerical ivision in plot line then requires spaces around /
2020-07-25 22:14:18 +02:00
Holger Vogt
4f1da9b5e1
new compatibility handling with struct compat newcompat:
...
simplify the compatibility handling, better readability
make it easily extendable
add new flag 'ki' for KiCad compatibility
2020-07-25 22:11:27 +02:00
Holger Vogt
50c7625082
Do not compile in fcn main() when shared ngspice is made
2020-07-25 18:07:09 +02:00
Holger Vogt
5e96739dd7
fix typo
2020-07-25 18:06:20 +02:00
Holger Vogt
820466ca7c
line endings --> unix
...
patch by Kevin
2020-07-25 10:53:07 +02:00
caand
32bcf96417
add missing get_sysmem() when no info available
2020-07-25 10:21:07 +02:00
Holger Vogt
af636cc778
bug fix 'extern int sh_vecinit()', not void
...
See patch #96 , thanks to Balazs Kovacs
2020-07-23 17:13:58 +02:00
Holger Vogt
0ca66abd3e
Don't send the empty line to create_circbyline(),
...
it is not used anymore and may cause a crash
2020-07-21 10:42:08 +02:00
Holger Vogt
6ed7bc4c68
Print out the netlist sent to ngspice by caller via 'circbyline'
...
or ngSpice_Circ
2020-07-21 00:07:37 +02:00
Holger Vogt
c8a9a2f0f1
Syntax check: If the first character in a netlist
...
or .control line is one of =[]?()&%$§\"!:, then ngspice
replaces it by '*' and issues a warning.
'set strict_errorhandling' will force ngspice existing.
2020-07-21 00:05:06 +02:00
Holger Vogt
0e22e1af9c
Cut out part of each vector of the current tran plot,
...
from times cut-tstart to cut-tstop and copy these
into a new tran plot. A new scale vector 'time' will be
generated as well. Vectors that are shorter than the
new scale vector will not be copied.
2020-07-18 23:11:34 +02:00
Holger Vogt
d42872a91d
replace 'noiseless' only if it is an unconnected token
2020-07-10 17:59:05 +02:00
Vogt
0c2cc9109b
enable special characters for cpl model names and parameters
2020-07-02 16:45:20 +02:00
Holger Vogt
727eac35d4
enable flags xdelta, ydelta for gnuplot command
2020-06-30 23:23:19 +02:00
Holger Vogt
cb682edd95
update on using bison as a CustomBuild command
2020-06-26 23:05:58 +02:00
Holger Vogt
ca477ea7f7
Make the pwl parameter r adjustable by .param
...
if r == -1, no repetition done.
if r == 0, repeat forever.
if r == xx, repeat from time xx to last time point given.
If r is omitted, like r == -1 no rpetition done.
2020-06-26 23:03:52 +02:00
Holger Vogt
60fd6e848a
Print also the bool value 'off'.
...
Do not abort ngspice when vector LIST cannot be printed,
just skip printing and continue.
2020-06-26 22:59:52 +02:00
Holger Vogt
85ad5e5532
ust tmpstr instead of second strstr()
2020-06-14 22:33:37 +02:00
Holger Vogt
6cfffe9545
Make PPerror message more verbose:
...
give hint to buggy line segment
2020-06-14 17:03:40 +02:00
Holger Vogt
8bfe87aa6b
Revert "Make PPerror message more verbose:"
...
This reverts commit a6edce193d .
2020-06-14 17:02:30 +02:00
Holger Vogt
a6edce193d
Make PPerror message more verbose:
...
give hint to buggy line segment
2020-06-14 13:53:05 +02:00
Holger Vogt
a21649f0e8
Unify batch mode and control mode raw file output:
...
Voltage is always named as v(nodename)
2020-06-13 18:26:21 +02:00
Holger Vogt
88fd768af9
no two or more commands in a single line
2020-06-10 14:59:52 +02:00
Holger Vogt
9ec0779ad3
Do not print "Units" on a graph, if unknown type
...
or settype notype is given.
2020-06-10 14:58:20 +02:00
Holger Vogt
818e923c94
enable node names with special characters like '/'
2020-06-05 13:23:23 +02:00
Kevin Zheng
477f62ccfa
When NGSPICE performs a transient simulation with initial conditions, it
...
prints out an "Initial Transient Solution" and plots the first timestep.
This is despite the fact that the first timestep is not meaningful when
initial conditions are applied. The first "real" output is available
only after the second transient timestep.
This patch suppresses "Initial Transient Solution" output and
plotting for the first timestep.
2020-05-24 12:51:24 +02:00
Holger Vogt
b145d6f042
Do not print tansient initial conditions, if uic is selected.
...
This output at time 0 is 0 as well. Only the next time step
would be valid.
Do not save the time 0 values because they are 0.
2020-05-24 12:30:04 +02:00
Holger Vogt
460cebe532
remove unused
2020-05-23 19:47:43 +02:00
Holger Vogt
835095c5ec
Add statistics: load, subckt expansion, and parse times
2020-05-23 15:43:25 +02:00
Carsten Schoenert
833fed95c5
Small fixup for misspelled words
2020-05-23 12:50:31 +02:00
Holger Vogt
b9e3f94610
Merge branch 'pre-master' of ssh://git.code.sf.net/p/ngspice/ngspice into pre-master
2020-05-23 12:33:29 +02:00
Holger Vogt
f426a33904
remove unused code that is now in CKTncDump()
2020-05-23 12:04:21 +02:00
Holger Vogt
98f27063e1
improve comments
2020-05-23 12:03:37 +02:00
holger
3a73b4cf8f
If code completetion is deselected, don't add keywords or key commands.
...
To prevent a crash in shared ngspice
2020-05-22 14:20:12 +02:00
holger
daec7b0c18
definitely exclude command completion in shared ngspice
2020-05-22 14:02:53 +02:00
Holger Vogt
c1f50da28d
during removing the plot 'const', also delete the hash table
2020-05-21 20:04:45 +02:00
Holger Vogt
2110a767ee
delete 'myvec' upon 'quit'
2020-05-21 20:00:51 +02:00
Holger Vogt
3a43466d26
clear all variables upon 'quit'
2020-05-21 19:49:58 +02:00
Holger Vogt
f410275f28
reset control structures (commands saved) upon 'quit'
2020-05-21 19:48:32 +02:00
Holger Vogt
36c5074bf9
shared lib version 32
2020-05-21 19:42:56 +02:00
Holger Vogt
11affdc3b9
re-enable compiling with --enable-nobypass
2020-05-19 23:14:48 +02:00
Holger Vogt
33acb3ea6a
Revert "re-enable compilation with --enable-nobypass"
...
This reverts commit b0e0055f58 .
2020-05-19 23:10:44 +02:00
Holger Vogt
927daf3223
remove calling MIFdestroy() that is empty
2020-05-19 23:10:09 +02:00
Holger Vogt
1422d3744b
add the icon also for the console build
2020-05-19 23:09:31 +02:00
Holger Vogt
f61ba6a2fe
adding the ngspice icon to the MINGW executable
2020-05-16 14:08:46 +02:00
Holger Vogt
b0e0055f58
re-enable compilation with --enable-nobypass
...
patch supplied by Joël BERTRAND
2020-05-16 11:10:30 +02:00
Holger Vogt
eceb0e9cad
If a g table source contains %, [, nor ] in its name,
...
replace it by _ in the a instance generated during parsing.
2020-05-16 11:02:04 +02:00