Libraries of mofem ecosystem are preinstalled in /opt directory, you need clone and install core library and user modules
1) Modify .bashrc
Open file for editing
At the end of file add
# history
export HISTSIZE=20000
export HISTFILESIZE=1000000000
# path
export PATH=/opt/local/bin:$PATH
# boost
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/local_boost_1_54_0/lib/
# MOFEM install directort
export MOFEM_INSTALL_DIR=$HOME
Update bash configuration
2) Clone repository and install core library
# Make directory
# mkdir $MOFEM_INSTALL_DIR
# Change to your $MOFEM_INSTALL_DIR
cd $MOFEM_INSTALL_DIR
# Cloning MoFEM source code:
git clone https://bitbucket.org/likask/mofem-cephas.git mofem-cephas
# Make a build directory
mkdir $MOFEM_INSTALL_DIR/lib
cd $MOFEM_INSTALL_DIR/lib
# Configuring and compiling code:
cmake -DCMAKE_BUILD_TYPE=Release -DPETSC_DIR=/opt/petsc -DPETSC_ARCH=arch-linux2-c-opt -DMOAB_DIR=/opt/local_new_moab -DADOL-C_DIR=/opt/local_adol-c-2.5.2 -DTETGEN_DIR=/opt/tetgen1.5.0 -DMED_DIR=/opt/local -DCMAKE_INSTALL_PREFIX=$MOFEM_INSTALL_DIR/users_modules/ -DBOOST_DIR=/opt/local_boost_1_54_0 -DMED_DIR=/opt/med -DBLA_VENDOR=Apple $MOFEM_INSTALL_DIR/mofem-cephas/mofem/
# Building code:
make -j8 install
# Testing and publishing results on MoFEM CDashTesting WebPage:
ctest --http1.0 -D Experimental
3) Configuration, compilation and testing user modules
cd $MOFEM_INSTALL_DIR/users_modules
# Configuration:
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=-I/opt/local_boost_1_54_0/include -DCMAKE_EXE_LINKER_FLAGS=-L/opt/local_boost_1_54_0/lib users_modules
# Build:
make -j8
# Testing:
ctest --http1.0 -D Experimental