VecFor icon indicating copy to clipboard operation
VecFor copied to clipboard

Unexpected derived-type entities in binary intrinsic numeric operator ‘*’

Open AliE89 opened this issue 4 years ago • 4 comments

Hi Stefano,

I am trying to compile this library but getting in troubules with the '*' operator overloading under gfortran-7.5 (and 10.2)... any hint? :)

image

AliE89 avatar Apr 04 '21 19:04 AliE89

Well, problem solved in the end. #ifdef on _R16P was messing up the operator overloading when compiling in double precision :) Probably the fact I am not using fobis is not helping much!

AliE89 avatar Apr 05 '21 17:04 AliE89

@AliE89

Hi, I have not understood if the problem has been solved or not. Do you need help?

Anyhow, the makefile (if any) can be very old and unmaintained, but I can try to fix it in case.

Cheers

szaghi avatar Apr 06 '21 12:04 szaghi

Ciao Stefano,

So the issue was under gfortran and due to the presence of the #ifdef _R16P in the operator '*' definition. For some reason gfortran is not very happy with those. Anyhow, I simply removed the ifdef from the code and it worked just fine. Maybe I did not put some flags in my makefile, I do not use much ifdef in my codes usually and maybe I am mistaking something. I can share my makefile with you if you like.

AliE89 avatar Apr 06 '21 12:04 AliE89

Hi @AliE89

Probably there is something missing in your makefile: if you like to share it I can try to investigate.

Cheers

szaghi avatar Apr 09 '21 09:04 szaghi