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

Changed intent for G in tidal_forcing_init() #528

Merged
merged 1 commit into from
Jun 21, 2017
Merged

Changed intent for G in tidal_forcing_init() #528

merged 1 commit into from
Jun 21, 2017

Conversation

adcroft
Copy link
Collaborator

@adcroft adcroft commented Jun 21, 2017

@Hallberg-NOAA I am a little uneasy that all three compilers, with the newest and only versions we have on c4, happily compiled. How can all three compilers have stopped checking intents?

Commit message:

  • The recent introduction of pass_var() calls on some fields in
    tidal_forcing_init() should have caused compile-time errors
    because pass_var() requires the G%Domain argument to be intent(inout).
  • Very worryingly, none of the compilers on c3 complained. Nor did gnu
    complain on the "trusty" image but I happened to still be using the older
    "precise" image for testing my scripts and the compiler there
    caught the mistake.

- The recent introduction of pass_var() calls on some fields in
  tidal_forcing_init() should have caused compile-time errors
  because pass_var() requires the G%Domain argument to be intent(inout).
- Very worryingly, none of the compilers on c3 complained. Nor did gnu
  complain on the "trusty" image but I happened to still be using the older
  "precise" image for testing my scripts and the compiler there
  caught the mistake.
@Hallberg-NOAA Hallberg-NOAA merged commit e09f0a9 into mom-ocean:dev/gfdl Jun 21, 2017
@adcroft adcroft deleted the fix-domain-intent-tidal-forcing-for-passvar branch June 27, 2017 17:24
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

Successfully merging this pull request may close these issues.

2 participants