8000 Same actual argument associated with INTENT(IN) and INTENT(OUT) in masked_var_grounded in MOM_ice_shelf.F90 · Issue #1665 · mom-ocean/MOM6 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Same actual argument associated with INTENT(IN) and INTENT(OUT) in masked_var_grounded in MOM_ice_shelf.F90 #1665

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

Open
NickSzapiro-NOAA opened this issue Apr 29, 2025 · 2 comments

Comments

@NickSzapiro-NOAA
Copy link
Contributor

Debug compiler warnings in UFS GEFS regression test (ufs-community/ufs-weather-model#2703) flag:

MOM6/src/ice_shelf/MOM_ice_shelf.F90:2686:54:
 2686 |     tmp(:,:) = 1.0; call masked_var_grounded(G,CS%dCS,tmp,tmp)
      |                                                      1
Warning: Same actual argument associated with INTENT(IN) argument 'var' and INTENT(OUT) argument 'varout' at (1)

MOM6/src/ice_shelf/MOM_ice_shelf.F90:2750:54:
 2750 |     tmp(:,:) = 1.0; call masked_var_grounded(G,CS%dCS,tmp,tmp)
      |                                                      1
Warning: Same actual argument associated with INTENT(IN) argument 'var' and INTENT(OUT) argument 'varout' at (1)

MOM6/src/ice_shelf/MOM_ice_shelf.F90:2814:54:
 2814 |     tmp(:,:) = 1.0; call masked_var_grounded(G,CS%dCS,tmp,tmp)
      |                                                      1
Warning: Same actual argument associated with INTENT(IN) argument 'var' and INTENT(OUT) argument 'varout' at (1)

in the EMC fork that also seem to apply here.

afaik, this conflict in intents may not yield the desired behavior. One option is to have tmp and tmp1 here

@sanAkel
Copy link
Collaborator
sanAkel commented Apr 30, 2025

@NickSzapiro-NOAA can you please assign it to me? I'll get back to it. Thanks!

@sanAkel
Copy link
Collaborator
sanAkel commented May 4, 2025

@NickSzapiro-NOAA see this commit

Screenshot of the change

This PR fixes this issue because:
the MOM6 bits of this issue will be resolved by a trivial update of MOM6 via PR because of this update.

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

No branches or pull requests

2 participants
0