« Previous - Version 2/6 (diff) - Next » - Current version
Johnny Chen, 09/17/2013 09:33 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.

We then have 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'...
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-$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/Albany/${USER}/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.