Improving performance#
numba#
sunkit_magex.pfss
automatically detects an installation of numba, which compiles some of the numerical code to speed up the pfss calculations.
To enable this simply install numba and use sunkit_magex.pfss
as normal.
Streamline tracing#
sunkit_magex.pfss
has two streamline tracers: a pure python sunkit_magex.pfss.tracing.PythonTracer
and a FORTRAN sunkit_magex.pfss.tracing.FortranTracer
.
The FORTRAN version is significantly faster, using the streamtracer package.