Hydra icon indicating copy to clipboard operation
Hydra copied to clipboard

Problems in compilation and execution of the PlanesDeltaAngle functor

Open Hiigaran opened this issue 3 years ago • 1 comments

Good morning,

I had some error messages in compilation when I tried to use the functor PlanesDeltaAngle.

I tried to fix the problem by changing the signature of the functor. (see attached file).

Kind regards

Hiigaran

PlanesDeltaAngle.zip

Hiigaran avatar Feb 02 '22 22:02 Hiigaran

Hi Hiigaran,

the problem is due to the fact that this functor has not been updated to the new function-call features of Hydra 3. In fact, the class is not templated with the usual ArgType and Signature typenames:

https://github.com/MultithreadCorner/Hydra/blob/50c701be3ebe9cf9f28fa9d69f6b32f5120d0d45/hydra/functions/PlanesDeltaAngle.h#L56

In principle the class can be templated with template<typename ArgType, typename Signature=double(ArgType)>, but there are two overloads of the method Evaluate() with different signatures, so we need to check if both are needed.

dbrundu avatar Mar 04 '22 14:03 dbrundu

Hello, sorry for the delay. I will correct this ahead Hydra 4 release.

AAAlvesJr avatar Nov 21 '23 03:11 AAAlvesJr