Running SIMIND
SIMIND command at the operating system prompt consists of the following parts:
  • The program name, SIMIND  
  • An input file [optional].  
  • An output file [optional]  
  • Control switches [optional].  
The example below considers a DOS operating system with possible differences to other  operating system in the prompt and the upper case of the characters:

c:\simind> simind input output/sc:3
The input file in the command line above, INPUT.SMC, defines a file created by  CHANGE  that contains the data for the particular simulation. No extensions are necessary since   CHANGE always creates files with the *.SMC extension. The output file[s] created by   SIMIND stores basic results from the simulation, a binary image and an energy pulse-  height spectrum. If not explicitly given, the output base file name, OUTPUT, will be equal   to the input file name but the different files are separated by different extensions. If no  input file name is given, the default file,simind.smc, will be used and the base name of  the output file will also be SIMIND.

Example of the program running on a PC
graphic
The user can control the input parameters created originally by  CHANGE at the  command level. This means that one single data file [for example, INPUT.SMC] can be  used for multiple simulations. Each value given by an index or by a flag in  CHANGE can  be overridden by a matching control switch. By giving a two- character alphanumeric  and a corresponding value, this new value takes precedence over the value defined by   CHANGE. More characters may be given for clarity but only the first two are used.
For example, overriding the value in the input file INPUT.SMC to CHANGE the number of  histories [Index 26 in CHANGE] to 10,000 is accomplished by the following command:
c:\simind> simind input output/26:10
The character ":" or "=" can be used to separate data from the switch name.  Note that  index's 1-9 must be assigned 01-09. The two switches "TR" and "FA" [TRUE and FALSE]  are used to control the simulation flags defined in  CHANGE. The following command can  be entered to reset Flag 1 [indicating no output to screen] and set simulation Flag 5  [invoke a SPECT simulation]: 
c:\simind> simind input output/fa:1/tr:5
The control switches may be placed arbitrarily together with the program name, the  input file or the output file for VMS and DOS. Input files, output files and program names  are separated by spaces. Trailing spaces are removed.
Limitations for LINUX/UNIX
There will be a conflict between the slashes used by  SIMIND and the slashes used to  define a certain directory in LINUX/UNIX.  SIMIND cannot distinguish between a slash  that points to a switch and a slash that is part of a UNIX file directory. To overcome this  problem, the directory name can be specified using two backslashes '\\'.  SIMIND will,  after decoded for control switches, change these backslashes to ordinary slashes '/' so  that result files can be stored in other directories. 
It is also not possible to add control switches directly to the program name in  LINUX/UNIX. The operating system assumes that this will be the program name. Thus,  control switches on a LINUX/UNIX machine should be added either after the input file or  the output file or separated by spaces.
All filenames are converted to lower case to simplify the coding and the comparability for   the different operating system.