alan-turing-institute / PeriPy

Code base for PeriPy, a lightweight, open-source and high-performance package for peridynamic simulations written in Python - a collaboration between Exeter, Cambridge & Turing
MIT License
46 stars 14 forks source link

Double precision ValueError not raised #118

Open bb515 opened 3 years ago

bb515 commented 3 years ago

A ValueError not raised if an opencl context is not provided and the context obtained from context = get_context() does not support double floating-point precision. Correct behaviour is to raise the ValueError.

https://github.com/alan-turing-institute/PeriPy/blob/master/peripy/integrators.py#:~:text=%23%20Get%20an%20OpenCL,floating-point%20precision%22)