Skip to content

Fix: call fv_setup from Initialize instead of SetServices in AdvCore - #422

Merged
pchakraborty merged 4 commits into
release/MAPL-v3from
bugfix/pchakrab/#420-advcore-fv-setup
Oct 28, 2026
Merged

pchakraborty merged 4 commits into
release/MAPL-v3from
bugfix/pchakrab/#420-advcore-fv-setup

Conversation

@pchakraborty

@pchakraborty pchakraborty commented Sep 15, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

fv_setup requests num_levels via MAPL_GridCompGet, which is only populated once the vertical grid is initialized during the GENERIC_INIT_GEOM_A phase. Since SetServices runs before that phase, num_levels silently defaulted to 1, breaking standalone AdvCore runs (no DynCore).

Moves the fv_setup call to Initialize, mirroring the existing pattern already used in DynCore_GridCompMod, so num_levels is resolved correctly.

Fixes #420

@lizziel

fv_setup requests num_levels via MAPL_GridCompGet, which is only
populated once the vertical grid is initialized during the
GENERIC_INIT_GEOM_A phase. Since SetServices runs before that phase,
num_levels silently defaulted to 1, breaking standalone AdvCore runs
(no DynCore) as reported in #420.

Move the fv_setup call to Initialize, mirroring the existing pattern
in DynCore_GridCompMod, so num_levels is resolved correctly.

Fixes #420
@pchakraborty
pchakraborty requested a review from a team as a code owner September 15, 2026 12:24
@pchakraborty pchakraborty added the MAPL3 MAPL 3 Related label Sep 15, 2026
@pchakraborty pchakraborty self-assigned this Sep 15, 2026
@pchakraborty pchakraborty added the 0 diff The changes in this pull request have verified to be zero-diff with the target branch. label Sep 15, 2026
@pchakraborty

Copy link
Copy Markdown
Collaborator Author

Closing it in favor of the workaround that @lizziel has.

@pchakraborty
pchakraborty deleted the bugfix/pchakrab/#420-advcore-fv-setup branch October 6, 2026 22:31
@pchakraborty
pchakraborty restored the bugfix/pchakrab/#420-advcore-fv-setup branch October 28, 2026 11:27
@pchakraborty pchakraborty reopened this Oct 28, 2026
@pchakraborty

Copy link
Copy Markdown
Collaborator Author

Ref: #432 (comment)

@pchakraborty
pchakraborty merged commit 8dae792 into release/MAPL-v3 Oct 28, 2026
16 checks passed
@pchakraborty
pchakraborty deleted the bugfix/pchakrab/#420-advcore-fv-setup branch October 28, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0 diff The changes in this pull request have verified to be zero-diff with the target branch. MAPL3 MAPL 3 Related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants