autotoc_md30
jupyter: jupytext: formats: ipynb,md text_representation: extension: .md format_name: markdown format_version: '1.3' jupytext_version: 1.16.0 kernelspec: display_name: Python 3 (ipykernel) language: python
name: python3
This notebook is for installing a Debug version of MoFEM.
Debug version is slower and mainly used for code developent
Clone MoFEM core and users modules.
mkdir -p mofem_install
cd mofem_install
git clone -b Workshop2023 https://bitbucket.org/mofem/mofem-cephas.git
cd $HOME/mofem_install/mofem-cephas/mofem/
git clone -b Workshop2023 https://bitbucket.org/mofem/users-modules-cephas.git users_modules
Print User Id
Install MoFEM core - Debug version
export TARGET=x86_64
spack --config-scope /mofem_install/spack_config_dir dev-build -j4 \
--source-path $HOME/mofem_install/mofem-cephas \
--keep-prefix \
mofem-cephas@lukasz~copy_user_modules \
target=$TARGET build_type=Debug install_id=$UID ^petsc+X ^boost+python+numpy
Check existing installations of mofem-cephas
export TARGET=x86_64
spack --config-scope /mofem_install/spack_config_dir find -lv mofem-cephas install_id=$UID
Install user modules including tutorials which you can learn from.
spack --config-scope /mofem_install/spack_config_dir dev-build -j4 \
--source-path $HOME/mofem_install/mofem-cephas/mofem/users_modules \
mofem-users-modules@lukasz build_type=Debug install_id=$UID \
^mofem-cephas@lukasz+adol-c~copy_user_modules~docker~ipo+med+mgis~shared+slepc+tetgen build_system=cmake build_type=Debug dev_path=/mofem_install/jupyter/$USER/mofem_install/mofem-cephas install_id=$UID \
^petsc+X ^boost+python+numpy
Check existing installations of mofem-users-modules
export TARGET=x86_64
spack --config-scope /mofem_install/spack_config_dir find -lv mofem-users-modules install_id=$UID
Create symbolic links to the Debug version of the code
rm -rf um_view_debug
spack view symlink -i um_view_debug mofem-users-modules build_type=Debug install_id=$UID