General Form:
version [-s | -f | <version id>]
Print out the version of nutmeg that is running, if invoked without argument
or with -s
or -f
. If the argument is a <version id>
(any string different
from -s
or -f
is considered a <version id>
), the command checks to make
sure that the arguments match the current version of NGSPICE.
(This is mainly used as a Command:
line in rawfiles.)
Options description
-s
(hort): A shorter version of the message you see when calling NGSPICE from the
command line.
-f
(ull): You may want to use this option if you want to know what extensions
are included into the simulator and what compilation switches are
active. A list of compilation options and included extensions is
appended to the normal (not short) message. May be useful when sending
bug reports.
The following example shows what the command returns is some situations:
ngspice 10 -> version ****** ** ngspice-15 : Circuit level simulation program ** The U. C. Berkeley CAD Group ** Copyright 1985-1994, Regents of the University of California. ** Please submit bug-reports to: ngspice-devel@lists.sourceforge.net ** Creation Date: Sun Aug 24 00:35:57 CEST 2003 ****** ngspice 11 -> version 14 Note: rawfile is version 14 (current version is 15) ngspice 12 -> version 15 ngspice 13 ->
Note for developers: The option listing returned when version
is called with the
-f
option is built at compile time using #ifdef
blocks. When new compile switch are
added, if you want them to appear on the list, you have to modify the code in misccoms.c.