Skip to content

Add adv-sa regression test for standalone AdvCore - #437

Open
pchakraborty wants to merge 1 commit into
release/MAPL-v3from
feature/pchakrab/adv-sa-regression
Open

pchakraborty wants to merge 1 commit into
release/MAPL-v3from
feature/pchakrab/adv-sa-regression

Conversation

@pchakraborty

@pchakraborty pchakraborty commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Adds adv-sa, a regression case that runs AdvCore on its own (no DynCore),
the configuration used by GCHP (#420).

  • regression/adv-sa/: ADV + DataForAdv (provides MFX, MFY, CX, CY, PLE0, PLE1 from its internal restart) + DataTracers (Q001, Q002 via TRADV). C12, 91 levels, 6 PEs, two 30-min steps; baseline is ADV's export checkpoint.
  • adv.yaml has geometry both top-level and under mapl: (YAML anchor): MAPL needs it under mapl: before connections are made (AdvCore only calls MAPL_GridCompSetGeometry in Initialize, i.e. INIT_USER), and fv_setup reads it from the top level.
  • run_case.cmake: calls copy_restarts before running (no-op for the cold-start cases adv-dyn and dyn-sa).
  • adv-dyn/dyn.yaml, dyn-sa/dyn-sa.yaml: vertical_grid updated to the current MAPL syntax (grid_type: model, fields: {pressure: PLE}).
  • cases.txt, README.md updated.

Regression data (FVdycoreCubed_GridComp/adv-sa/):

  • checkpoints/1891-03-02T00:00:00/DataForAdv_internal.nc: symlink to ../../../adv-dyn/checkpoints/last/DYN_export.nc
  • checkpoints/last/ADV_export.nc: baseline

The data still has to be uploaded to /ford1 and S3; until then adv-sa fails (missing input restart).

Testing

  • ctest -R '^adv-sa$' (ifx Debug, LOCAL_REGRESSION_DATA_DIR pointing at a local copy of the data) passed; baseline comparison skipped since the baseline didn't exist yet.
  • Two manual runs (6 PEs) gave identical ADV_export.nc (nccmp).
  • Checked the output: Q001/Q002 start uniform (0.1/0.2) and stay uniform except the bottom layer (max relative deviation 1.2e-4, in 132 of 864 columns); global means are kept to ~1e-7. The adv-dyn baseline has the same bottom-layer-only pattern (max 6e-5).
  • adv-dyn and dyn-sa were not re-run with the updated vertical_grid syntax as part of this PR.

AdvCore runs without DynCore (DYCORE unset), so it does its own fv_setup.
MFX/MFY/CX/CY/PLE0/PLE1 come from a DataForAdv internal restart, which is
the adv-dyn baseline's DYN_export.nc. run_case.cmake now calls
copy_restarts so cases can stage input restarts from the regression data.

Also update the vertical_grid config in adv-dyn and dyn-sa to the current
MAPL syntax (grid_type/fields).
@pchakraborty
pchakraborty marked this pull request as ready for review October 29, 2026 12:54
@pchakraborty
pchakraborty requested a review from a team as a code owner October 29, 2026 12:54
@pchakraborty pchakraborty self-assigned this Oct 29, 2026
@pchakraborty pchakraborty added 0 diff The changes in this pull request have verified to be zero-diff with the target branch. Contingent - DNA These changes are contingent on other PRs MAPL3 MAPL 3 Related labels Oct 29, 2026
@github-actions

Copy link
Copy Markdown

This PR is being prevented from merging because you have added one of our blocking labels: Contingent - DNA, Needs Lead Approval, Contingent -- Do Not Approve. You'll need to remove it before this PR can be merged.

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. Contingent - DNA These changes are contingent on other PRs MAPL3 MAPL 3 Related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant