Skip to content

Fix incorrect field index for ICEF#561

Merged
JessicaMeixner-NOAA merged 2 commits into
NOAA-EMC:developfrom
ukmo-waves:bugfix/badfieldnum
Dec 20, 2021
Merged

Fix incorrect field index for ICEF#561
JessicaMeixner-NOAA merged 2 commits into
NOAA-EMC:developfrom
ukmo-waves:bugfix/badfieldnum

Conversation

@ukmo-ccbunney
Copy link
Copy Markdown
Collaborator

@ukmo-ccbunney ukmo-ccbunney commented Dec 16, 2021

Pull Request Summary

The field index for ICEF is incorrect in w3iorsmd and w3initmd

Description

The ICEF index is set as 9 in w3iorsmd and w3initmd, but it should be 12.

This fix could result in a change in a generated restart file if RHO was requested as an extra restart output as this would have incorrectly output the "ICEF" field to restart.ww3.

Currently, this only affects the ww3_tp2.14 regtest.

Issue(s) addressed

Commit Message

Fix incorrect field index for ICEF.

Check list

Testing

  • How were these changes tested? Regression tests.
  • Are the changes covered by regression tests? (If not, why? Do new tests need to be added?) Yes
  • Have the matrix regression tests been run (if yes, please note HPC and compiler)? Cray XC HPC; GFortran compiler

Regression test results: matrixComp_badfieldnum.zip

Summary of differences:

**********************************************************************
********************* non-identical cases ****************************
**********************************************************************
mww3_test_03/./work_PR3_UQ_MPI_d2                     (9 files differ)
mww3_test_03/./work_PR3_UQ_MPI_d2_c                     (8 files differ)
mww3_test_03/./work_PR3_UNO_MPI_d2                     (12 files differ)
mww3_test_03/./work_PR1_MPI_e                     (1 files differ)
mww3_test_03/./work_PR1_MPI_d2                     (13 files differ)
mww3_test_03/./work_PR2_UNO_MPI_d2                     (8 files differ)
mww3_test_03/./work_PR3_UNO_MPI_d2_c                     (7 files differ)
mww3_test_03/./work_PR2_UQ_MPI_d2                     (12 files differ)
ww3_tp2.14/./work_OASACM4                         (1 files differ)

Expected differences:

  • ww3_tp2.14/OASACM4: restart file is different due to previously incorrect output of ICEF field, as described above.
  • mww3_test_03: Known non-b4b.

@ukmo-ccbunney ukmo-ccbunney added the bug Something isn't working label Dec 16, 2021
@JessicaMeixner-NOAA
Copy link
Copy Markdown
Collaborator

I'll start running regtests here. The changes themselves look okay. Has someone grepped for ICEF or other variables to make sure we've gotten all the FLGRDALL( 1, 9) -> FLGRDALL( 1, 12) or would it be helpful if I did that as well?

@JessicaMeixner-NOAA
Copy link
Copy Markdown
Collaborator

@ukmo-ccbunney @mickaelaccensi is this block of code okay as is:
https://github.com/NOAA-EMC/WW3/blob/develop/model/src/ww3_outf.F90#L910-L919 ? Otherwise, I think everything seemed okay.

@ukmo-ccbunney
Copy link
Copy Markdown
Collaborator Author

@ukmo-ccbunney @mickaelaccensi is this block of code okay as is: https://github.com/NOAA-EMC/WW3/blob/develop/model/src/ww3_outf.F90#L910-L919 ? Otherwise, I think everything seemed okay.

Good catch @JessicaMeixner-NOAA - that block of code needs changing.

Also, I notice that RHOAIR and TAU are not output in ww3_outf; we should fix that! Are you happy if I do that in this PR?

@JessicaMeixner-NOAA
Copy link
Copy Markdown
Collaborator

@ukmo-ccbunney that'd be great to add that to this PR, it all seems related to me. Thanks!

@ukmo-ccbunney
Copy link
Copy Markdown
Collaborator Author

@ukmo-ccbunney that'd be great to add that to this PR, it all seems related to me. Thanks!

OK - I've done that in the last commit.
Regression test results are the same as before.

@JessicaMeixner-NOAA
Copy link
Copy Markdown
Collaborator

Thanks @ukmo-ccbunney I'll resubmit mine with the updates.

@JessicaMeixner-NOAA
Copy link
Copy Markdown
Collaborator

Tests all run fine at NCEP, with just the expected differences:

**********************************************************************
********************* non-identical cases ****************************
**********************************************************************
mww3_test_03/./work_PR2_UQ_MPI_d2                     (8 files differ)
mww3_test_03/./work_PR3_UNO_MPI_d2_c                     (8 files differ)
mww3_test_03/./work_PR3_UNO_MPI_d2                     (10 files differ)
mww3_test_03/./work_PR2_UNO_MPI_d2                     (7 files differ)
mww3_test_03/./work_PR1_MPI_d2                     (11 files differ)
mww3_test_03/./work_PR3_UQ_MPI_d2_c                     (8 files differ)
mww3_test_03/./work_PR3_UQ_MPI_d2                     (8 files differ)
mww3_test_07/./work_PR3_UQ                     (3 files differ)
ww3_tp2.10/./work_MPI_OMPH                     (7 files differ)
ww3_tp2.14/./work_OASACM4                     (1 files differ)
ww3_tp2.16/./work_MPI_OMPH                     (5 files differ)
ww3_ufs1.1/./work_d                     (0 files differ)
ww3_ufs1.2/./work_b                     (0 files differ)
ww3_ufs1.3/./work_a                     (1 files differ)

matrixCompFull.txt
matrixCompSummary.txt
matrixDiff.txt

Thanks @ukmo-ccbunney for the updates. We're just waiting on @mickaelaccensi to review and then this is ready to be merged.

Copy link
Copy Markdown
Collaborator

@mickaelaccensi mickaelaccensi left a comment

Choose a reason for hiding this comment

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

all good for me !

@JessicaMeixner-NOAA JessicaMeixner-NOAA merged commit c68b12c into NOAA-EMC:develop Dec 20, 2021
@ukmo-ccbunney ukmo-ccbunney deleted the bugfix/badfieldnum branch May 12, 2023 12:27
kestonsmith-noaa pushed a commit to kestonsmith-noaa/WW3 that referenced this pull request Jun 17, 2025
* Most GFSv14/GFSv15 based tests are updated to GFSv16 confiscation, the cold start ICs were created from GFSv16 anaylysis. A GDAS forecast case using IAU is also setup.
* Debug tests are added for global regression tests
* Regional tests was renamed, and regional threads was added
* History file names are changed from "phyf/dynf" to operational file names "sfcf/atmf"
* Restart files for baseline comparison are removed from the GFSv16 feature tests, only those tests with restart will still have restart files comparison
* There is no change in non-GFS configuration tests using gsd, rrtf, hafs physics package
* The first commit has no changes in cpld tests and datm tests.
* The inline post issue in post interface post_*.F90 is fixed for gnu compiler.
* amip_interp_nml namelist is removed from all the name list files
* Unused configuration varaibles: cpl, memuse_verbose, atmos_nthreads, use_hyper_thread, ncores_per_node are removed from model_configure
* The issue with inline post restart with gnu compiler is fixed
* Input data directory input-data-20210528 has new 172 leves 2021032206 ICs for C96, C192 and C384 global input files.
* utest related changes

Co-authored-by: denise.worthen <Denise.Worthen@noaa.gov>
Co-authored-by: MinsukJi-NOAA <Minsuk.Ji@noaa.gov>
Co-authored-by: junwang-noaa <jun.wanag@noaa.gov>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

inconsistencies in group/field identifiers for RHO and TAU

3 participants