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

Incorrect variable detection in read-only-verification #2843

Open
hiker opened this issue Jan 9, 2025 · 0 comments
Open

Incorrect variable detection in read-only-verification #2843

hiker opened this issue Jan 9, 2025 · 0 comments

Comments

@hiker
Copy link
Collaborator

hiker commented Jan 9, 2025

In:

if (logical_var) then
   umask(ji,jj) = 1
endif
logical_var = .True.

the variable logical_var will be considered to be a read-only variable (and the read-only verification then flags that this variable is changed).

Reason is that read-only-verification uses call_tree_utils.get_input_parameters, which only detects input parameters - the read-only verification does not test if a variable is also an output parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant