Download NOMAD User Guide

Transcript
14
Software installation and test
For bash shell, add the following lines in the file .profile located in
your home directory:
export NOMAD_HOME=YOUR_NOMAD_DIRECTORY
export PATH=$NOMAD_HOME/bin:$PATH

Unix/Linux/Mac OS X
$NOMAD_HOME is
required for compiling
examples
For csh or tcsh shell, add the following lines to the file .login:
setenv NOMAD_HOME YOUR_NOMAD_DIRECTORY
setenv $NOMAD_HOME/bin:$PATH
To activate the variables, at the command prompt, enter the command
source .profile or
source .login, or simply log out and log in.
Compilation of source codes is possible if the gcc compiler is installed on the machine (if
not, install Xcode from Apple developer Web site):
In a terminal window, do cd $NOMAD_HOME/install and execute the
./install.sh command.
This script automatically compiles the code and generates the NOMAD executable in $NOMAD_HOME/bin and the NOMAD library in $NOMAD_HOME/lib.
The script also detects if MPI is installed. If so, the parallel NOMAD
executable and library are generated in the same directories as the scalar
version.
If your prefer to use another compiler than gcc, you will need to modify the makefile in
$NOMAD_HOME/src.
Test the installation in a terminal window by entering:
nomad -info at the command prompt. The output of the command
should be similar than the one depicted by Figure 2.2