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

[fortran] Fix for function declarations in derived types #834

Merged
merged 11 commits into from
Mar 4, 2024

Conversation

vincentraymond-ua
Copy link
Contributor

@vincentraymond-ua vincentraymond-ua commented Feb 29, 2024

Summary of Changes

There was a bug discovered in the CTSM source PhotosynthesisMod.F90 where a function is declared in a derived type but defined in the outer module. This PR updates the variable context to support this case.

Additionally resolves a bug where function declarations and definitions can have different case sensitivity.

Related issues

Resolves ???

@github-actions github-actions bot added the lang/Fortran Used for work related to Fortran (ex. frontend support) label Feb 29, 2024
@vincentraymond-ua vincentraymond-ua changed the title Vraymond/photo mod fix [fortran] Fix for function declarations in derived types Mar 2, 2024
@vincentraymond-ua vincentraymond-ua marked this pull request as ready for review March 2, 2024 21:28
Copy link
Contributor

@titomeister titomeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! I noticed some TODOs in the comments for the changed files. I figured I would point them out in case you need to resolve these for this PR, or more likely they're for later?

@vincentraymond-ua
Copy link
Contributor Author

@titomeister - I've updated the branch to remove the unneeded todos. Some were resolved by this fix and others are just left over things from previously.

@vincentraymond-ua vincentraymond-ua merged commit 156e193 into main Mar 4, 2024
7 checks passed
@vincentraymond-ua vincentraymond-ua deleted the vraymond/photo_mod_fix branch March 4, 2024 19:55
github-actions bot added a commit that referenced this pull request Mar 4, 2024
## Summary of Changes
There was a bug discovered in the CTSM source PhotosynthesisMod.F90
where a function is declared in a derived type but defined in the outer
module. This PR updates the variable context to support this case.

Additionally resolves a bug where function declarations and definitions
can have different case sensitivity.

### Related issues

Resolves ???

---------

Co-authored-by: titomeister <[email protected]> 156e193
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang/Fortran Used for work related to Fortran (ex. frontend support)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants