Skip to content

modifies array size to NCellsSize#378

Merged
mark-petersen merged 3 commits intoE3SM-Project:developfrom
alicebarthel:omega/fix-eos-arraysize
Apr 6, 2026
Merged

modifies array size to NCellsSize#378
mark-petersen merged 3 commits intoE3SM-Project:developfrom
alicebarthel:omega/fix-eos-arraysize

Conversation

@alicebarthel
Copy link
Copy Markdown

@alicebarthel alicebarthel commented Mar 26, 2026

Modifies array sizes and loop bounds to NCellsSize (fixes #367)
Checklist

  • Linting
  • Building
    • CMake build does not produce any new warnings from changes in this PR
  • Testing
    • CTest unit tests pass on pm-cpu_gnu Debug
    • The Polaris omega_pr test suite: job 50825116 passes all but the del4 convergence test

@alicebarthel
Copy link
Copy Markdown
Author

@mwarusz Would that solve your issue?
If so, I'll do a similar update to the vertMix Arrays.

@alicebarthel alicebarthel requested a review from mwarusz March 26, 2026 17:18
Copy link
Copy Markdown
Member

@mwarusz mwarusz left a comment

Choose a reason for hiding this comment

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

@alicebarthel

Thanks ! Looks good, but I don't think it was necessary to modify the loop bounds. Could you revert those changes ?

@alicebarthel
Copy link
Copy Markdown
Author

@mwarusz Is there ever a case where we might read in values in the arrays of size NCellsSize that were not computed (given that the loop bounds are NCellsAll) and still have their default value? Wouldn't we want to avoid this?
Clearly I am still not understanding the subtleties correctly...

@alicebarthel
Copy link
Copy Markdown
Author

It now fails the IO_STREAM ctest... I'll see what I can find.

@mwarusz
Copy link
Copy Markdown
Member

mwarusz commented Mar 27, 2026

@alicebarthel

Just checking that you know about #356.

@alicebarthel
Copy link
Copy Markdown
Author

alicebarthel commented Mar 27, 2026

Thanks @mwarusz! yes, it sounded familiar so I looked it up and am rerunning ctests in a clean folder now... And passes! 🎉

@alicebarthel
Copy link
Copy Markdown
Author

Update on testing: 1 test fails but it's the del4 convergence

Polaris omega_pr suite

  • Baseline workdir: /global/homes/a/abarthel/pscratch/polaris-scratch/baseline_omega_pr
  • Baseline build: /global/homes/a/abarthel/pscratch/polaris-scratch/baseline_omega_pr/build
  • PR build: /global/homes/a/abarthel/pscratch/omega_scratch/pr-fix-arraysize-cpugnu-v2
  • PR workdir: /pscratch/sd/a/abarthel/polaris-scratch/pr-fix-arraysize-cpu-v2
  • Machine: pm-cpu
  • Compiler: gnu
  • Build type: Debug
  • Log: /pscratch/sd/a/abarthel/polaris-scratch/pr-fix-arraysize-cpu-v2/polaris_omega_pr.o50825116
  • Result:
    • Diffs (1 of 8):
      • ocean/planar/manufactured_solution/convergence_both/del4

Is that something that we expect (I've heard del4 failures are common) and that we expect to be resolved by a fix recently discusses?

@alicebarthel alicebarthel marked this pull request as ready for review April 1, 2026 20:43
@alicebarthel alicebarthel requested a review from mwarusz April 1, 2026 20:44
@mwarusz
Copy link
Copy Markdown
Member

mwarusz commented Apr 1, 2026

Is that something that we expect (I've heard del4 failures are common) and that we expect to be resolved by a fix recently discusses?

@alicebarthel

There is a known issue with this test (#376) that has a fix (#377). However, this issue should only affect you if your pr run used a different number of MPI tasks than your baseline run. I don't have access to your baseline workdir, so I couldn't check if that was the case.

@mwarusz mwarusz mentioned this pull request Apr 3, 2026
19 tasks
@mark-petersen mark-petersen self-assigned this Apr 6, 2026
@mark-petersen
Copy link
Copy Markdown
Collaborator

Ran a quick check, and this passes all cTests on PM CPU.

@mark-petersen mark-petersen merged commit 6c8aa0f into E3SM-Project:develop Apr 6, 2026
1 check passed
xylar added a commit to E3SM-Project/polaris that referenced this pull request Apr 11, 2026
This merge updates the e3sm_submodules/Omega submodule from [c2542a2](https://github.com/E3SM-Project/Omega/tree/c2542a2) to [6c8aa0f](https://github.com/E3SM-Project/Omega/tree/6c8aa0f).

This update includes the following MPAS-Ocean and MPAS-Frameworks PRs (check mark indicates bit-for-bit with previous PR in the list):
- [ ]  (ocn) E3SM-Project/Omega#301
- [ ]  (ocn) E3SM-Project/Omega#358
- [ ]  (ocn) E3SM-Project/Omega#378
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Out-of-bounds error in SpecVol

3 participants