pyccel / sympde

Symbolic calculus for partial differential equations (and variational forms)
http://sympde.readthedocs.io/
MIT License
20 stars 4 forks source link

Domain coordinates should be real #156

Closed e-moral-sanchez closed 2 months ago

e-moral-sanchez commented 3 months ago

At the moment the domain coordinates are Sympy symbols but we don't specify them to be real.

Consequently when we take the real part of a complex expression of the coordinates, the resulting symbolic expression includes the imaginary part of the coordinate and eventually Pyccel throws an error.

Besides, setting the symbols to real simplifies considerably the expressions.