Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Domain coordinates should be real #156

Merged
merged 3 commits into from
Jul 11, 2024
Merged

Domain coordinates should be real #156

merged 3 commits into from
Jul 11, 2024

Conversation

e-moral-sanchez
Copy link
Contributor

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.

Copy link
Collaborator

@campospinto campospinto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems indeed a good change. I don't see any practical issue.

@campospinto campospinto merged commit 31ffec7 into master Jul 11, 2024
6 checks passed
@campospinto campospinto deleted the real_coord branch July 11, 2024 14:03
campospinto added a commit that referenced this pull request Jul 24, 2024
The PR #156 defined domain coordinates with real=True argument. This is
probably justified but requires additional testing as it breaks some
calls to TerminalExpr. Here this change is reverted, and a dedicated PR
will be reopened later.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants