Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[L5] Clarification of INTENT(OUT) usage #2

Open
mlange05 opened this issue Nov 10, 2023 · 0 comments
Open

[L5] Clarification of INTENT(OUT) usage #2

mlange05 opened this issue Nov 10, 2023 · 0 comments

Comments

@mlange05
Copy link
Collaborator

Issue originally raised by P. Marguinaud in GPU adapation additions. It pertains to rule L5:

>>PM: Structures like YDVARS which contain some pointers can have the INTENT(IN) attribute, and
have their pointed values modified. This is a problem, as we will have such structures everywhere
in the code.
Furthermore, using the ``INTENT(OUT)`` attribute for such variables may cause some compilers 
(eg NAG) to wipe their contents.
And YDVARS also contains some metadata that should remain constant. I think we do not have any
other choice but to declare YDVARS (and other similar structures) with ``INTENT(IN)`` everywhere.
<<
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant