When ADF has been installed you can run it by supplying appropriate input and starting the 'adf' script, located in $ADFBIN. This script sets up some environment variables, and parses the input to see if anything special needs to be done. For example, if the BASIS key is used the adf script will also execute commands to make the appropriate fragment files. You can use this run script both for the serial and parallel versions of the program. For other programs in the package, there are similar run scripts ('band', 'dirac', and so on).
Running the program using the run script involves the following steps:
During the run you may inspect the logfile, to see how far the program has proceeded, or whether you should interrupt the calculation.
In the above scheme adf is the name of the run script that invokes the adf.exe program executable. During the installation the script has been put in the same directory where the program executables are generated: $ADFBIN. You may have moved it to another place, or renamed it. We recommend that you adjust your $PATH variable so that you can omit $ADFBIN from the execution command.
To run another program from the ADF suite, just use the appropriate program run script.
The input for the program is read from standard input, and output is written to standard output, redirected in the example above to in and out, respectively.
The part between square brackets is optional and is only meaningful for a parallel program version. The -n flag specifies the number of parallel processes (nproc) to use. If omitted the default applies, which is the value of the environment variable $NSCM, if such variable exist, otherwise it is defined by installation parameters (in the $ADFHOME/settings file, see the Installation Manual).
The program run scripts have, in fact, more flags and arguments, for special usage. You can get a survey by typing
$ADFBIN/adf -h




