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):
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
:
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):
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
:
Please see Configurations for more information.