Skip to content

Backends

Before we go any further, it is necessary to set the backend used for the analysis. For example, to use the C++ backend, set the MICROMECHANICAL_BACKEND environment variable to cpp (default):

.env
MICROMECHANICAL_BACKEND=cpp

To use the pure Python backend, set the MICROMECHANICAL_BACKEND environment variable to python and disable the numba JIT compilation by setting the NUMBA_DISABLE_JIT environment variable to 1:

.env
MICROMECHANICAL_BACKEND=python
NUMBA_DISABLE_JIT=1

To use the Python backend with the numba JIT compilation, set the MICROMECHANICAL_BACKEND environment variable to python and enable the numba JIT compilation by setting the NUMBA_DISABLE_JIT environment variable to 0 (default):

.env
MICROMECHANICAL_BACKEND=python
NUMBA_DISABLE_JIT=0

For C++ and Python/numba backends, you can also set the MICROMECHANICAL_PRECISION environment variable to set the precision of the floating-point numbers used in the analysis to double (default) or single:

.env
MICROMECHANICAL_PRECISION=double
MICROMECHANICAL_PRECISION=single

Please see Configurations for more information.