Holger Vogt
1abeb1290b
Align title line to the numbers following
1 year ago
Brian Taylor
75c2811fa9
Fix some memory leaks.
1 year ago
Holger Vogt
123ed0aada
Add simulator version info to raw file ('write' commad)
using an extra line 'Command: ...').
The old sequence (adding commands manually to raw file) is
still available.
The 'Command: anycommand' will not be executed if loading
an ngspice-generated raw file. Raw files from other simulators may
generate a warning that the command is not available.
2 years ago
Holger Vogt
f1d944e4c4
remove typo
4 years ago
Holger Vogt
f698ce6281
Write out the current in the old fashion
1 v1#branch current
when keep#branch is set in .spiceinit.
To make the raw file compatible with ICCAP.
4 years ago
Brian Taylor
38848259e4
With the ngspice gnuplot command, enable x/y contour plots for 2d Cider save file data. Usage: gnuplot <file> xycontour <expr>. xycontour is a new flag which is ignored if the plot data is not from 2d Cider. For contours, only a single plotarg <expr> is allowed. With <expr1> vs <expr2>, only <expr1> is plotted and <expr2> is ignored.
5 years ago
Holger Vogt
84d3d8c143
Don't add v(...) around output vector if compat mode 'eg' is set.
5 years ago
Holger Vogt
97db844944
Prevent raw file entries (by the 'write' command) like
6 i(i(v_vsupply2)) current
5 years ago
Holger Vogt
064bd39a2f
Unify batch mode and control mode raw file output:
Voltage is always named as v(nodename)
6 years ago
Jim Monte
bd84e4be6c
error messages
6 years ago
Jim Monte
372fe2a5e7
Opened binary files for writing using "wb" in all cases
6 years ago
Holger Vogt
63b4cf05de
Do not bail out if 'load file' command has unavailable file,
just post error message and continue
A fix to https://sourceforge.net/p/ngspice/discussion/127605/thread/986c04f22b/
by Clyde
7 years ago
Holger Vogt
09c876550f
prevent string overflow by adding the string length
to the cp_getvar parameters. Used only with CP_STRING
8 years ago
Holger Vogt
68125ea3cf
allow reading LTSPICE ascii raw files with 'load' command
by discarding 'Offset:'
8 years ago
h_vogt
d7a1899210
runcoms.c, rawfile.c, include filename in the 'ASCII/binary raw file' printout
9 years ago
rlar
45ad60b738
rename gettok_nc() --> nexttok(), and functionalize it
9 years ago
h_vogt
6a0a6071a0
gettok_nc(&line): like gettok(), move pointer beyond next token in line, but without returning a string, without TMALLOC. Replaces constructs like tfree(gettok(&line)).
10 years ago
rlar
1c565a1a89
frontend/rawfile.c, raw_write(), fix memory ownership for pl_title and pl_date
avoid assigning cloned strings
to pl_date/pl_title fields of multiple plots
avoid excess allocation
10 years ago
rlar
521db88eff
frontend/rawfile.c, use "stringskip.h"
10 years ago
rlar
4c1c95e20f
everywhere, use `TMALLOC()' instead of `alloc()'
10 years ago
rlar
71a7c3459b
use char variants of the <ctype.h> isxxxx() family
10 years ago
rlar
c2a7821449
dvec abstraction, #10/11, introduce `dvec_trunc()'
10 years ago
rlar
8243696338
dvec abstraction, #8/11, upgrade `dvec_alloc()'
10 years ago
rlar
cea2664db0
dvec abstraction, #5/11, emphasise `v_numdims = 0' initialisation
10 years ago
rlar
8a4a37b5bb
dvec abstraction, #4/11, emphasise `ZERO(dvec)' initialisation
10 years ago
rlar
908c650f72
dvec abstraction, #3/11, use `dvec_alloc()'
10 years ago
rlar
814c51659e
frontend/rawfile.c, raw_read(), reorder
10 years ago
rlar
08feced9b6
frontend/rawfile.c, raw_read(), reorder
10 years ago
rlar
9e353fbae8
frontend/rawfile.c, raw_read(), emphasise `v_type' initialisation
10 years ago
rlar
7bab434504
frontend/rawfile.c, fixdims(), turn `if' upside-down for readability
10 years ago
rlar
19e427e3a5
cleanup, use NULL instead of 0 in pointer context
11 years ago
rlar
5ac7858a79
rewrite, use tprintf
11 years ago
rlar
6b5bbb71d0
rawfile.c, bug fix, missing memory allocation and a memory leak
11 years ago
rlar
6f21c3b9db
use `enum simulation_types'
11 years ago
h_vogt
d7e291c53a
HAS_WINDOWS --> HAS_WINGUI
allow compilation on MS Windows without GUI
13 years ago
rlar
83e3100917
remove unused variables
14 years ago
rlar
fe1acd3757
src/frontend/** remove superfluous `return' invocations
14 years ago
rlar
ab98f03622
src/frontend/** whitespace, indentation, ...
checked for object file invariance on linux
14 years ago
rlar
7454a6d486
src/frontend/**, whitespace, indentation, ...
untabify
delete-trailing-whitespace
braces
...
checked for object file invariance on linux
14 years ago
rlar
f3b5336d3a
cleanup some macros, try to be more careful
14 years ago
rlar
9655b9885a
cleanup, use wl_cons(), wl_append_word() and wl_chop_rest()
14 years ago
h_vogt
a212be67bc
Exit with error if file not found: fgets() cannot read from NULL
14 years ago
rlar
10e5dbfbcc
raw_read() always fopen("rb") even on windows, always swallow "\r"
14 years ago
rlar
a056ea3065
#3/4 switch realpart() and imagpart() args from ngcomplex* to ngcomplex
14 years ago
rlar
c3741ae6a1
comment/pinpoint a local misuse of a structure element
14 years ago
h_vogt
757bf30cc9
bug during loading ascii rawfile removed
14 years ago
rlar
0b5042e7da
remove CVS `Id',`log' etc. keyword incantations
14 years ago
rlar
10346e055c
#1/4 #include <ngspice/...> --> #include "ngspice/..."
14 years ago
rlar
d26015586c
#1/7 use a subdirectory "ngspice" for includes to create a uniq namespace
15 years ago
h_vogt
56229ce907
improved error message
15 years ago