Mark pure
subroutines and functions as pure
where possible
#712
Labels
pure
subroutines and functions as pure
where possible
#712
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).
The text was updated successfully, but these errors were encountered: