Installation¶
Matlab¶
Prerequisites¶
Matlab \(\geq\) 2018a
MagTense is directly useable in Matlab by downloading the already compiled MEX-files.
Python¶
Prerequisites¶
Python \(\geq\) 3.9
Required Packages¶
[Info] On Linux, Make utility is pre-installed.
conda install -y numpy matplotlib
conda install -y -c conda-forge make
Prepare terminal¶
Setting environment variables to recognize ifort and MKL. [Info] On Windows, the environment variables might be set already.
. ~/intel/oneapi/setvars.sh
Build Python module¶
Fortran source code becomes accessible from Python.
cd /path/to/repo/python/magtense/lib/
make SHELL=cmd
cd /path/to/repo/python/
pip install -e .