Skip to content

issue #326: Promote char_{min,max}_wrapper helpers to module scope#327

Merged
bonachea merged 1 commit into
BerkeleyLab:mainfrom
bonachea:issue-326
May 20, 2026
Merged

issue #326: Promote char_{min,max}_wrapper helpers to module scope#327
bonachea merged 1 commit into
BerkeleyLab:mainfrom
bonachea:issue-326

Conversation

@bonachea
Copy link
Copy Markdown
Member

Resolves #326

@bonachea bonachea added this to the Caffeine 0.8.0 milestone May 19, 2026
@bonachea bonachea requested a review from ktras May 19, 2026 04:59
Copy link
Copy Markdown
Member Author

@bonachea bonachea left a comment

Choose a reason for hiding this comment

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

Rename to ensure all non-PRIF global symbols have a caf_ prefix, as required in our coding conventions

Comment thread src/caffeine/co_max_s.F90 Outdated
Comment thread src/caffeine/co_max_s.F90 Outdated
Comment thread src/caffeine/co_max_s.F90 Outdated
Comment thread src/caffeine/co_max_s.F90 Outdated
Comment thread src/caffeine/co_min_s.F90 Outdated
Comment thread src/caffeine/co_min_s.F90 Outdated
Comment thread src/caffeine/co_min_s.F90 Outdated
Comment thread src/caffeine/co_min_s.F90 Outdated
Copy link
Copy Markdown
Collaborator

@ktras ktras left a comment

Choose a reason for hiding this comment

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

LGTM

…le scope

F2023 C1807 states:

> A procedure defined in a submodule shall not have a binding label
> unless its interface is declared in the ancestor module.

Promoting helper procedures like these to PRIF module scope would be tedious
and break abstraction boundaries, so instead declare a single-purpose module to
hold each helper procedure.
@bonachea
Copy link
Copy Markdown
Member Author

Squashed down to a single commit, to simplify cherry-pick against older releases

@bonachea bonachea merged commit d5d33eb into BerkeleyLab:main May 20, 2026
44 checks passed
@bonachea bonachea deleted the issue-326 branch May 20, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build regression on flang-latest

2 participants