« Previous - Version 5/6 (diff) - Next » - Current version
Johnny Chen, 09/18/2013 09:56 am


Building Albany

For this tutorial, we will be building Albany on SCOREC workstations.
Log onto a SCOREC workstation with your user name and password.
A list of workstation can be found on https://www.scorec.rpi.edu/wiki/List_of_Computers
Open a terminal by clicking the drop-down menu "Applications"

Applications -> Accessories -> Terminal

Clone Albany Repository

Once the terminal is open, type

cd /fasttmp/${USER}
If the error "No such file or directory" appears, you will have to create the directory and open it.
mkdir ${DIRECTORYNAME}
cd ${DIRECTORYNAME}

Now to clone the Albany repository.
git clone /users/ghansen/Albany.git 
This will provide you with a local copy of the Albany source code.
After a few seconds, the following output should appear on the screen
Cloning into 'Albany'...
done.
Checking out files: 100% (2063/2063), done.

Once the repository has been cloned, cd into the Albany directory and create a build directory

cd Albany
mkdir build
cd build

Create Environment Variables

This Albany build will use existing libraries on SCOREC workstations. In order to utilize these
libraries, it will be necessary to type in the following

export LD_LIBRARY_PATH=/users/ghansen/lib:/users/ghansen/lib64:/fasttmp/ghansen/netcdf-4.2.1.1/install/lib:/fasttmp/ghansen/hdf5-1.8.9/hdf5/lib:$LD_LIBRARY_PATH
export PATH=/users/ghansen/bin/:$PATH

Configure Albany

This Albany build will use an existing Trilinos library on SCOREC workstations.
It will also enable LCM (Library of Computational Mechanics) and SCOREC software capabilities.

../doc/buildScripts/gahanse/do-cmake-albany-mpi --trilinos /fasttmp/granzb/Trilinos/install/stable --lcm --scorec

If the configure was successful, there will be output which indicates which features Albany has included, as well as
the following lines:

And CMake says...:
-- Configuring done
-- Generating done
-- Build files have been written to: /fasttmp/${USER}/Albany/build

To see more configure options, you can type

../doc/buildScripts/gahanse/do-cmake-albany-mpi --help

Building and Installing Albany

This Albany build will install Albany in the same directory as the build directory.
While remaining in the build directory (/fasttmp/${USER}/Albany/build), type the following:

make -j 8

The build and installation may take between 10-20 minutes.

Testing Albany

To see if Albany is installed correctly, a test can be run.
While in the build directory, type the following:

ctest

A series of test should run automatically. This should take 40-50 minutes. Expect some failures, but if the majority of the tests passed then the build was installed correctly.