BlackHolePerturbationToolkit / Teukolsky

A Mathematica package for computing solutions to the Teukolsky equation.
http://bhptoolkit.org/Teukolsky/
MIT License
19 stars 3 forks source link

Package fails to load on M1 Macs for Mathematica 13.1 #34

Closed bleather closed 1 year ago

bleather commented 1 year ago

The package fails to load on my ARM M1 Mac for Mathematica 13.1. It seems linked to a previous issue I raised with h5mma.

When trying to load the latest version of the package, you get the following error: h5mma has been installed, but the MathLink executable cannot be loaded. Please check the README for instructions for filing a bug report. before the kernel aborts loading the Teukolsky package.

I know h5mma has issues with M1 Macs due to the architecture change, but I'm unsure how to find a workaround to make the package work. I don't know if anyone else has experienced similar issues.

znasipak commented 1 year ago

Do you know what part of the package relies on h5mma? Is it just for loading the renormalized angular momentum data? Is there a reason to not just use Mathematica's built-in HDF5 reader?

nielsw2 commented 1 year ago

The code will fall back to Mathematica's (slower) HDF5 reader if the h5mma package is not found. If you uninstall the h5mma package this should resolve the issue.

The only place the HDF5 are loaded is in RenormalizedAngularMomentum.m from the MST package. This is to load series expansion for small frequency expansions. I think currently this only work for Schwarzschild as the Kerr series expansion are not yet included. At the moment the code does not use these expansions unless explicitly told to.

barrywardell commented 1 year ago

We could consider removing then h5mma depndence, at least until we decide to include the series expansions.

barrywardell commented 1 year ago

This has been fixed in aadb792f2d3b8fdde84b6dc331d12e508de53d8f. The fix was to remove the dependence on h5mma.