Next: , Previous: Unset, Up: Commands


10.3.59 Version: Print the version of ngspice

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

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.