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

Add logic to catch issue when partition file assigns 0 cells to a pe #6321

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

jonbob
Copy link
Contributor

@jonbob jonbob commented Apr 2, 2024

When mpas-ocean runs with no cells assigned to a processor by a graph file and has landIcePressureOn, the run aborts. This fixes that situation by adding a check for the number of cells to the logic that causes the abort.

Fixes: #6320

[BFB]

Copy link

github-actions bot commented Apr 2, 2024

PR Preview Action v1.4.7
🚀 Deployed preview to https://E3SM-Project.github.io/E3SM/pr-preview/pr-6321/
on branch gh-pages at 2024-04-02 18:21 UTC

@jonbob
Copy link
Contributor Author

jonbob commented Apr 2, 2024

Testing with a oQU240wLI configuration that pointed to a manipulated graph file both replicated the original issue and showed that this fix allows mpas-ocean to successfully complete

@cbegeman
Copy link
Contributor

cbegeman commented Apr 2, 2024

@jonbob Thanks for fixing this. The logic makes sense to me. Would you like me to do any additional testing before approving?

@jonbob
Copy link
Contributor Author

jonbob commented Apr 2, 2024

Thanks @cbegeman -- I don't think any testing is necessary, unless you would like to try it. I'm redoing the test I had setup just to make sure this solution works exactly as in the PR. And I'll do more testing to make sure it doesn't change answers on any regular E3SM tests before I merge it

Copy link
Contributor

@cbegeman cbegeman left a comment

Choose a reason for hiding this comment

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

Approving based on visual inspection and @jonbob's testing. Thanks for the fix @jonbob!

jonbob added a commit that referenced this pull request Apr 4, 2024
Add logic to catch issue when partition file assigns 0 cells to a pe

When mpas-ocean runs with no cells assigned to a processor by a graph
file and has landIcePressureOn, the run aborts. This fixes that
situation by adding a check for the number of cells to the logic that
causes the abort.

Fixes: #6320

[BFB]
@jonbob
Copy link
Contributor Author

jonbob commented Apr 4, 2024

Passes:

  • ERS_Ld5.T62_oQU120.CMPASO-NYF.chrysalis_intel
  • PEM_Ln9.ne30pg2_r05_IcoswISC30E3r5.WCYCL1850.chrysalis_intel

merged to next

@jonbob jonbob merged commit a020489 into master Apr 5, 2024
11 checks passed
@jonbob jonbob deleted the jonbob/ocn/fix-0-ncells branch April 5, 2024 18:45
xylar added a commit to xylar/compass that referenced this pull request May 8, 2024
This merge updates the E3SM-Project submodule from [93e511d](https://github.com/E3SM-Project/E3SM/tree/93e511d) to [31e0924](https://github.com/E3SM-Project/E3SM/tree/31e0924).

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/E3SM#6256
- [ ]  (ocn) E3SM-Project/E3SM#6224
- [ ]  (ocn) E3SM-Project/E3SM#6270
- [ ]  (ocn) E3SM-Project/E3SM#6293
- [ ]  (ocn) E3SM-Project/E3SM#6321
- [ ]  (ocn) E3SM-Project/E3SM#6262
- [ ]  (ocn) E3SM-Project/E3SM#6300
- [ ]  (ocn) E3SM-Project/E3SM#6334
- [ ]  (ocn) E3SM-Project/E3SM#6371
- [ ]  (ocn) E3SM-Project/E3SM#6288
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.

MPAS-O aborts when a graph partitioning file gives 0 cells to a processor
2 participants