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

Mark pure subroutines and functions as pure where possible #712

Open
sbryngelson opened this issue Nov 8, 2024 · 0 comments
Open

Mark pure subroutines and functions as pure where possible #712

sbryngelson opened this issue Nov 8, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@sbryngelson
Copy link
Member

https://stackoverflow.com/questions/30264729/proper-use-of-the-pure-keyword-fortran

https://stackoverflow.com/questions/9813494/pure-subroutines-in-fortran-compiler-optimization

It is a good idea to mark pure subroutines (without side effects) as pure. This means that the routine only has intent() and does not modify module variables (which is a side effect).

@sbryngelson sbryngelson added enhancement New feature or request good first issue Good for newcomers labels Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Development

No branches or pull requests

1 participant