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

(Closes #2768) Improve robustness of Sign2Code and Abs2Code transformations #2769

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

arporter
Copy link
Member

@arporter arporter commented Nov 7, 2024

Ensures that the target of the transformation has a scalar argument of known type (previously we were very naughty and assumed it was a REAL scalar). In order to allow us to seamlessly support arguments of integer type, I've extended the Fortran backend for Literals slightly so that it now ensures that reals end in ".0" and doubles in ".0d0". This revealed a bug in PSyAD where we were declaring array indices as REAL rather than INTEGER.

@arporter arporter marked this pull request as draft November 7, 2024 11:37
@arporter arporter self-assigned this Nov 7, 2024
@arporter
Copy link
Member Author

arporter commented Nov 7, 2024

nemo/eg4 fails due to the bug that is fixed by #2767 (ArrayMixin._effective_shape needs updating now that we support Expressions). Therefore I'll pause this until that PR is on.

@arporter arporter added PSyIR Core PSyIR functionality Blocked An issue/PR that is blocked by one or more issues/PRs. labels Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocked An issue/PR that is blocked by one or more issues/PRs. PSyIR Core PSyIR functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant