FEniCS / ffcx

Next generation FEniCS Form Compiler for finite element forms
https://fenicsproject.org
Other
145 stars 38 forks source link

warning: implicit declaration of function ‘real’; did you mean ‘creal’? #602

Closed mscroggs closed 1 year ago

mscroggs commented 1 year ago

Generated code for a form is giving this warning. See eg https://github.com/FEniCS/basix/actions/runs/6094169143/job/16535151559?pr=682

chrisrichardson commented 1 year ago

Is this because ufl is asking for the real part or conj of a real number (non complex)? Does it ever ask for imag(x) - I guess that should return zero, in this case...

mscroggs commented 1 year ago

Yes, I believe that's the issue. It was asking for the real part of one of the coordinates (which is a double)