DedalusProject / dedalus

A flexible framework for solving PDEs with modern spectral methods.
http://dedalus-project.org/
GNU General Public License v3.0
492 stars 116 forks source link

Extended precision polynomial construction #194

Open kburns opened 2 years ago

kburns commented 2 years ago

This PR modifies dedalus_sphere to implement double-double extended precision with the xprec package, related to #166. This seems to work well but doesn't currently fix range/underflow/overflow issues in the construction of the SWSH, since xprec currently only supports extended mantissas but not extended exponents. However there may be some other options using other packages, but none seem to interface very well with numpy or scipy.sparse.