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 missing code to set threadNum before its use #5337

Merged
merged 1 commit into from
Dec 5, 2022

Conversation

jonbob
Copy link
Contributor

@jonbob jonbob commented Nov 29, 2022

Fixes an issue where a variable threadNum was used before it was set

Fixes #5333
[BFB]

@jonbob jonbob added bug fix PR BFB PR leaves answers BFB mpas-framework labels Nov 29, 2022
@jonbob jonbob requested a review from ambrad November 29, 2022 20:08
@jonbob jonbob self-assigned this Nov 29, 2022
@jonbob jonbob requested a review from mark-petersen November 29, 2022 20:09
@jonbob
Copy link
Contributor Author

jonbob commented Nov 29, 2022

@mark-petersen - I added you in part so you could decide if we need to pass this along to Michael Duda

jonbob added a commit that referenced this pull request Dec 1, 2022
…(PR #5337)

Add missing code to set threadNum before its use

Fixes an issue where a variable threadNum was used before it was set

Fixes #5333
[BFB]
@jonbob
Copy link
Contributor Author

jonbob commented Dec 1, 2022

passes sanity testing, merged to next

Copy link
Contributor

@mark-petersen mark-petersen left a comment

Choose a reason for hiding this comment

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

@ambrad thanks for pointing this out. threadNum is used but uninitialized, so this is an obvious correction.

@jonbob jonbob merged commit 8025078 into master Dec 5, 2022
@jonbob jonbob deleted the jonbob/mpas-framework/fix-missing-threadnum branch December 5, 2022 20:38
xylar added a commit to xylar/compass that referenced this pull request Dec 15, 2022
This merge updates the E3SM-Project submodule from [569ed6b730](https://github.com/E3SM-Project/E3SM/tree/569ed6b730) to [0273cfad9d](https://github.com/E3SM-Project/E3SM/tree/0273cfad9d).

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#5306
- [ ]  (fwk) E3SM-Project/E3SM#5303
- [ ]  (ocn) E3SM-Project/E3SM#5325
- [ ]  (fwk) E3SM-Project/E3SM#5337
- [ ]  (fwk) E3SM-Project/E3SM#5123
- [ ]  (fwk) E3SM-Project/E3SM#5281
- [ ]  (ocn) E3SM-Project/E3SM#5356
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MPAS: mpas_dmpar uses uninitialized threadNum in mpas_dmpar_minloc_real
3 participants