- 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.
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 email@example.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
Check out the Tpetra branch of Albany¶
cd $ALBANY_SRC git checkout -b tpetra origin/tpetra
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 \ -D ALBANY_TRILINOS_DIR:FILEPATH="$TRILINOS_INSTALL_DIR" \ -D ENABLE_LCM:BOOL=ON \ -D ENABLE_QCAD:BOOL=OFF \ -D ENABLE_LCM_SPECULATIVE:BOOL=OFF \ -D ENABLE_LAME:BOOL=OFF \ -D CMAKE_VERBOSE_MAKEFILE:BOOL=OFF \ -D ENABLE_DEBUGGING:BOOL=OFF \ -D ENABLE_CHECK_FPE:BOOL=OFF \ -D ENABLE_HYDRIDE:BOOL=OFF \ -D ENABLE_SCOREC:BOOL=ON \ -D ENABLE_SEE:BOOL=OFF \ -D ENABLE_FELIX:BOOL=OFF \ -D ENABLE_MOR:BOOL=OFF \ -D ENABLE_ALBANY_CI:BOOL=OFF \ -D ENABLE_ASCR:BOOL=OFF \ -D ENABLE_SG_MP:BOOL=OFF \ -D ENABLE_64BIT_INT:BOOL=OFF \ -D ENABLE_ALBANY_EPETRA_EXE:BOOL=OFF \ ../
A "typical" cmake configure script is located at:
Configure Albany like the above
make -j N (N: # processes to use)
To run a suite of Albany tests
cd $ALBANY_SRC/build ctest