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

Reproducibility of the ordering of expressions #498

Open
MichaelSt98 opened this issue Feb 26, 2025 · 0 comments
Open

Reproducibility of the ordering of expressions #498

MichaelSt98 opened this issue Feb 26, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@MichaelSt98
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

Loki is generating the same code with the same initial conditions/source files/...

Arguments can be reordered, in function declarations, but also in module use statements, (e.g. USE parkind1, ONLY: JPIM, JPRB vs USE parkind1, ONLY: JPRB, JPIM)

This is not a bug and the generated code is valid either way, however, this makes comparing files more difficult.

There are several reasons for that but mostly the usage of python sets is responsible for that.

Describe the solution you'd like

Rewrite some parts, e.g., sort module imports via name so that the generated code always looks the same.

Describe alternatives you've considered

No response

Additional context

No response

Organisation

No response

@MichaelSt98 MichaelSt98 added the enhancement New feature or request label Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant