Ngspice specific variables

  • SPICE_LIB_DIR
    default: /usr/local/share/ngspice (Linux, CYGWIN), C:\Spice\share\ngspice (Windows)
  • SPICE_EXEC_DIR
    default: /usr/local/bin (Linux, CYGWIN), C:\Spice\bin (Windows)
  • SPICE_BUGADDR
    default: http://ngspice.sourceforge.net/bugrep.html
    Where to send bug reports on ngspice.
  • SPICE_EDITOR
    default: vi (Linux, CYGWIN), notepad.exe (MINGW, Visual Studio)
    Set the editor called in the edit command. Always overrides the EDITOR env. variable.
  • SPICE_ASCIIRAWFILE
    default: 0
    Format of the rawfile. 0 for binary, and 1 for ascii.
  • SPICE_NEWS
    default: $SPICE_LIB_DIR/news
    A file that is copied verbatim to stdout when ngspice starts in interactive mode.
  • SPICE_HELP_DIR
    default: $SPICE_LIB_DIR/helpdir
    Help directory, not used in Windows mode
  • SPICE_HOST
    default: empty string
    Used in the rspice command (probably obsolete, to be documented)
  • SPICE_SCRIPTS
    default: $SPICE_LIB_DIR/scripts
    In this directory the spinit file will be searched.
  • SPICE_PATH
    default: $SPICE_EXEC_DIR/ngspice
    Used in the aspice command (probably obsolete, to be documented)
  • NGSPICE_MEAS_PRECISION
    default: 5
    Sets the number of digits if output values are printed by the meas(ure) command.
  • SPICE_NO_DATASEG_CHECK
    default: undefined
    If defined, will suppress memory resource info (probably obsolete, not used on Windows or where the /proc information system is available.)
  • NGSPICE_INPUT_DIR
    default: undefined
    If defined, using a valid directory name, will add the given directory to the search path when looking for input files (*.cir, *.inc, *.lib).