LeanderSchlegel / CRPropa3

The new CRPropa
GNU General Public License v3.0
0 stars 0 forks source link

Add CMakeFlags for SIMD use #6

Closed JulienDoerner closed 2 years ago

JulienDoerner commented 2 years ago

Hey everyone,

I have added a installation Flag HAVE_SIMD depending on the SIMD_EXTENSION, which is TRUE for all other types than "none". If HAVE_SIMD is false a warining is displayed in the installation and the tricubic interpolation of vector grids will give a runtime error. All testcases are adjusted for the flag. Till now there is no Option to use SIMD only for the PlaneWaveTurbulence but not for tricubic interpolation. In that case we would be neccesarry to create a own interpolation flag. But I don't see any scenario where it neccesarry to have this option. This closes #4

Further more I have updated the warning for downcasting in the vector grids. The warning will only be shown for Grid3d where the downcasting will happen.