v0.14.0 |
This brief tutorial assumes that you have installed MoFEM with developer version using either instructions in Installation with Docker - JupyterHub or the script provided in Installation with Spack (Scripts). Therefore, you should have paths for the source code and the binary files (e.g. for the Release
build type) of the Core Library and Users Modules as follows:
$HOME/mofem_install/mofem-cephas/
$HOME/mofem_install/mofem-cephas/core-build-Release-*
$HOME/mofem_install/mofem-cephas/mofem/users_modules/
$HOME/mofem_install/mofem-cephas/mofem/users_modules/um-build-Release-*
In build directories described above, symbol
*
stands for thehash
of the particular build, e.g.5sehreo
You will need to compile the Core Library if you change any file related to C++ source codes that are located in
You can compile the Core Library by running the following command lines:
where -j4
indicates that you will use four processors to compile the code.
If you have several builds of the Core library, e.g.
Debug
andRelease
, you will need to substitute the symbol*
in the command above by thehash
of the build you want to recompile.
You will need to compile Users Modules if you change any file related to C++ source codes that are located in
The changes include those when you modify the codes of Basic Users Modules or when you add a new module of your own and change its source code.
You can compile both the Basic User Modules and your own module (if any) by running the following command lines:
If you have several builds of the Users Modules, e.g.
Debug
andRelease
, you will need to substitute the symbol*
in the command above by thehash
of the build you want to recompile.