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

Submodules, code org strategy and helper procedures #2827

Open
bena-nasa opened this issue May 13, 2024 · 2 comments
Open

Submodules, code org strategy and helper procedures #2827

bena-nasa opened this issue May 13, 2024 · 2 comments
Assignees
Labels
📈 MAPL3 MAPL 3 Related ❓ Question Further information is requested

Comments

@bena-nasa
Copy link
Collaborator

bena-nasa commented May 13, 2024

I'm poking around the geom manager in MAPL3, and saw some duplication that seemed odd. I noticed that for example these two files now define the same helper procedure?

https://github.com/GEOS-ESM/MAPL/blob/release/MAPL-v3/geom_mgr/GeomManager/make_geom_spec_from_hconfig.F90#L26
https://github.com/GEOS-ESM/MAPL/blob/release/MAPL-v3/geom_mgr/GeomManager/make_geom_spec_from_metadata.F90#L26

I guess the original single submodule had this helper procedure and after splitting this up now both need it so there's no choice but to re-implmente it in both submodules?

Is this the strategy then if you have helper procedures that are not type-bound, not intended to be public, and don't fit the naming and organization scheme?

@bena-nasa bena-nasa added ❓ Question Further information is requested 📈 MAPL3 MAPL 3 Related labels May 13, 2024
@tclune
Copy link
Collaborator

tclune commented May 13, 2024

Good catch. So long as the interface is in the main module, only one submodule should implement it. I'll take a look.

@tclune
Copy link
Collaborator

tclune commented May 13, 2024

I think @JulesKouatchou simply missed this when splitting the original module apart.

@JulesKouatchou Please do a PR to fix this. Discuss with me if unsure how to proceed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📈 MAPL3 MAPL 3 Related ❓ Question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants