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

Set coordinates to real symbols #170

Merged
merged 11 commits into from
Mar 5, 2025
Merged

Set coordinates to real symbols #170

merged 11 commits into from
Mar 5, 2025

Conversation

e-moral-sanchez
Copy link
Contributor

@e-moral-sanchez e-moral-sanchez commented Oct 13, 2024

Domain coordinates in SymPDE are SymPy symbols. Here we set their attribute real=True to avoid problems with code generation in Psydac when working with complex expressions. Fixes #169.

@e-moral-sanchez e-moral-sanchez changed the title set attibute of coordinates to real set coordinates to real symbols Oct 13, 2024
Copy link
Member

@yguclu yguclu left a comment

Choose a reason for hiding this comment

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

@e-moral-sanchez I suggest you add some basic tests for the TerminalExpr function (which is constructor of the namesake class in module sympde.expr.evaluation), and mark those which fail with @pytest.mark.xfail.

@e-moral-sanchez e-moral-sanchez marked this pull request as ready for review December 2, 2024 10:30
@e-moral-sanchez
Copy link
Contributor Author

The problem with TerminalExpr has been fixed.
Since pyccel/psydac#445 passed the tests, this PR is ready.

@yguclu
Copy link
Member

yguclu commented Feb 12, 2025

The problem with TerminalExpr has been fixed. Since pyccel/psydac#445 passed the tests, this PR is ready.

Excellent. Please update the PR description...

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.

I have a few comments (also to better understand the previous code)

@yguclu
Copy link
Member

yguclu commented Mar 5, 2025

@campospinto Do you approve this PR?

@yguclu yguclu changed the title set coordinates to real symbols Set coordinates to real symbols Mar 5, 2025
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.

Thanks, it's clearer now!

@e-moral-sanchez
Copy link
Contributor Author

Before merging, we should trigger the tests in Psydac

Remove useless parentheses from assert statements. Assert is not a function in Python.
@yguclu yguclu merged commit 623d6f8 into master Mar 5, 2025
6 checks passed
@yguclu yguclu deleted the real_coord branch March 5, 2025 11:00
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.

Make domain coordinates real symbols
3 participants