Installing Albany

These are instructions for building Albany on SCOREC workstations.

Set environment variables

The build process needs to find the mpicxx wrappers and mpi libraries. Trilinos and Albany now require c++11 features, which requires a newer compiler than gcc 4.4. Loading the following modules should allow Albany to build against the Trilinos build in /lore/granzb/trilinos/install

Example:

 source /usr/local/etc/bash_profile
 module load gcc/4.9.2
 module load mpich3/3.1.2-thread-multiple
 module load parmetis/mpich3.1.2/4.0.3
 module load cmake/3.0.0

Clone repository from GitHub to desired directory

Method 1: HTTPS

git clone https://github.com/gahansen/Albany.git

Method 2: SSH

git clone git@github.com:gahansen/Albany.git

You should see the following message

Cloning into 'Albany'...

which, after some time, will be followed by the message

done.
Checking out files: 100% (2130/2130), done.

the directory Albany will now have been created

cd Albany
export ALBANY_SRC=$PWD

Configure Albany

cd $ALBANY_SRC
mkdir build
cd build
touch config.sh
chmod +x config.sh
./config.sh

example contents of config.sh

#!/bin/sh
export TRILINOS_INSTALL_DIR=/lore/granzb/trilinos/install
cmake \
    -DALBANY_TRILINOS_DIR:PATH=${TRILINOS_INSTALL_DIR} \
    -DENABLE_64BIT_INT:BOOL=ON \
    -DENABLE_SCOREC:BOOL=ON \
    -DENABLE_LCM:BOOL=ON \
    -DENABLE_SEE:BOOL=ON \
    -DENABLE_CHECK_FPE:BOOL=ON \
    -DENABLE_ALBANY_EPETRA_EXE:BOOL=OFF \
    -DENABLE_LCM_SPECULATIVE:BOOL=OFF \
    -DENABLE_HYDRIDE:BOOL=OFF \
    -DENABLE_SG_MP:BOOL=OFF \
    -DENABLE_QCAD:BOOL=OFF \
    -DENABLE_MOR:BOOL=OFF \
  ../

A cmake configure script with many possible configure options is located at:

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

Build

Configure Albany like the above

make AlbanyT -j N   (N: # processes to use)

Test

To run a suite of Albany tests

cd $ALBANY_SRC/build
ctest