astro-informatics / purify

Next-generation radio interferometric imaging.
https://astro-informatics.github.io/purify
GNU General Public License v2.0
16 stars 11 forks source link

Fix/work-around errors in apple-clang #327

Closed tkoskela closed 1 year ago

tkoskela commented 1 year ago

Closes #321

OpenMP in apple-clang is problematic, therefore drop apple-clang OpenMP build from the CI matrix.

Changed the array initialisation syntax in integration.cc. Although cppreference says both ways should work in C++11, they recommend initialising with array<t,n> foo = {1,2,3} rather than array<t,n>foo{{1,2,3}}. Added #include <array> which was the cause of the problem. https://stackoverflow.com/questions/12797051/implicit-instantiation-of-undefined-template-when-forward-declaring-template-c