« Previous - Version 23/24 (diff) - Next » - Current version
Brian Granzow, 11/10/2014 02:47 pm


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. This can be done by loading the appropriate mpi module.

Example:

  source /usr/local/etc/bash_profile
  module load cmake/latest
  module load pumi

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