command line options to nrniv

Anything that doesn't fit elsewhere.
Post Reply
jaambros
Posts: 29
Joined: Tue Oct 04, 2005 3:29 pm
Location: Ohio University

command line options to nrniv

Post by jaambros »

I'm looking for some documentation of the command line options of nrniv.

I know you can use -NSTACK xxx -NFRAME xxx

In particular, I'm looking for a way to tell nrniv not to attempt to set the X11 display variable.
Is there such thing?

I know you can do this when building nrniv.
I'm trying to find out if it can be done on the command line.

THanks,
hines
Site Admin
Posts: 1603
Joined: Wed May 18, 2005 3:32 pm

Post by hines »

In particular, I'm looking for a way to tell nrniv not to attempt to set the X11 display variable.
Is there such thing?

Code: Select all

-nogui
A list of all options is in nrn/src/ivoc/ivocmain.cpp in the

Code: Select all

static OptionDesc options[] = {
Also you have to look through the file for all occurrences of the string "optarg" (without the quotes). In my opinion the interesting ones that are NEURON specific are: -dll, -isatty, --version, -python, -nobanner, -nogui, -realtime, -NSTACK, -NFRAME, -mpi.
Some of those (-python, -realtime, -mpi) have meaning only when built with certain configuration options.
hines
Site Admin
Posts: 1603
Joined: Wed May 18, 2005 3:32 pm

Post by hines »

In the process of adding a -c "statement" option to the command line for executing one or more hoc statements, I also added a -h and -help option that prints the message

Code: Select all

[hines@localhost nrnobj]$ nrniv -help
nrniv [options] [fileargs]
  options:
    -dll filename    dynamically load the linked mod files.
    -h               print this help message
    -help            print this help message
    -isatty          unbuffered stdout, print prompt when waiting for stdin
    -mpi             launched by mpirun or mpiexec, in parallel environment
    -mswin_scale float   scales gui on screen
    -NSTACK integer  size of stack (default 1000)
    -NFRAME integer  depth of function call nesting (default 200)
    -nobanner        do not print startup banner
    -nogui           do not send any gui info to screen
    -notatty         buffered stdout and no prompt
    -python          Python is the interpreter
    -realtime        For hard real-time simulation for dynamic clamp
    --version        print version info
    and all InterViews and X11 options
  fileargs:          any number of following
    -                input from stdin til ^D (end of file)
    -c "statement"    execute next statement
    filename         execute contents of filename
This is committed to the subversion repository http://www.neuron.yale.edu/cgi-bin/trac ... geset/1730 and will eventually filter into the alpha versions at http://www.neuron.yale.edu/ftp/neuron/versions/alpha/ and from there to the next standard distribution.
Post Reply