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

Fix for inconsistent time in air density input #812

Merged
merged 2 commits into from
Oct 3, 2022

Conversation

ukmo-juan-castillo
Copy link
Collaborator

@ukmo-juan-castillo ukmo-juan-castillo commented Sep 29, 2022

Pull Request Summary

Fix inconsistent time check in air density input

Description

f driving data is read from file, the consistency of the times in the file is checked in the W3WAVE subroutine. This is done to make sure that the driving data contains valid data for the time of the run. In the case of air density, the times read from the momentum driving data file are used, which is wrong and can cause false errors. To fix the problem, the variables TR0 and TRN have to be used instead of TU0 and TUN when testing the air density file, which should be evident by reading the code with care.

No change in answers in expected, although configurations using as driving data air density but not momentum will now not fail if set correctly.

Labels that should be added: bug

Issue(s) addressed

Commit Message

Fix for inconsistent time check in air density input

Check list

Testing

  • How were these changes tested?
    Regtests, and the amm15-smc configuration at the Met Office driven by air density.
  • Are the changes covered by regression tests? (If not, why? Do new tests need to be added?)
    Not covered, and not vital to have it added. Usually, when driving the model with air density the user would like to drive it with momentum too, so the configuration that is failing will not typically be used.
  • Have the matrix regression tests been run (if yes, please note HPC and compiler)?
    Yes, on the CrayXC40 at the Met Office using the GNU compiler.
  • Please indicate the expected changes in the regression test output, (Note the list of known non-identical tests.)
    No changes expected
  • Please provide the summary output of matrix.comp (matrix.Diff.txt, matrixCompFull.txt and matrixCompSummary.txt):
    See comment below.

@ukmo-ccbunney
Copy link
Collaborator

Changes look good to me. I am running the regressions tests.

@ukmo-ccbunney
Copy link
Collaborator

Regression tests passed ok, just the usual suspects not B4B


**********************************************************************
********************* non-identical cases ****************************
**********************************************************************
mww3_test_03/./work_PR3_UQ_MPI_d2                     (8 files differ)
mww3_test_03/./work_PR3_UQ_MPI_d2_c                     (8 files differ)
mww3_test_03/./work_PR3_UNO_MPI_d2                     (8 files differ)
mww3_test_03/./work_PR1_MPI_e                     (1 files differ)
mww3_test_03/./work_PR1_MPI_d2                     (11 files differ)
mww3_test_03/./work_PR2_UNO_MPI_d2                     (10 files differ)
mww3_test_03/./work_PR3_UNO_MPI_d2_c                     (10 files differ)
mww3_test_03/./work_PR2_UQ_MPI_d2                     (10 files differ)
mww3_test_03/./work_PR3_UNO_MPI_e                     (1 files differ)

@ukmo-ccbunney ukmo-ccbunney added the bug Something isn't working label Sep 30, 2022
@ukmo-juan-castillo ukmo-juan-castillo marked this pull request as ready for review September 30, 2022 08:10
@MatthewMasarik-NOAA
Copy link
Collaborator

Hi @ukmo-juan-castillo , thank you for this pull request! I've started running the regressions tests on our end. @JessicaMeixner-NOAA is out today, but will return on Monday and we will finalize this PR at that time.

Copy link
Collaborator

@MatthewMasarik-NOAA MatthewMasarik-NOAA left a comment

Choose a reason for hiding this comment

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

regression tests passed on hera with the known non-identicals + unstructured mod_defs.

**********************************************************************                                                             
********************* non-identical cases ****************************                                                             
**********************************************************************                                                             
mww3_test_03/./work_PR2_UNO_MPI_d2                     (10 files differ)                                                           
mww3_test_03/./work_PR1_MPI_d2                     (16 files differ)                                                               
mww3_test_03/./work_PR3_UNO_MPI_d2_c                     (12 files differ)                                                         
mww3_test_03/./work_PR3_UQ_MPI_d2_c                     (15 files differ)                                                          
mww3_test_03/./work_PR3_UNO_MPI_d2                     (15 files differ)                                                           
mww3_test_03/./work_PR2_UQ_MPI_d2                     (15 files differ)                                                            
mww3_test_03/./work_PR3_UQ_MPI_d2                     (15 files differ)                                                            
ww3_ta1/./work_UPD0F_U                     (0 files differ)                                                                        
ww3_tp2.10/./work_MPI_OMPH                     (7 files differ)                                                                    
ww3_tp2.16/./work_MPI_OMPH                     (4 files differ)                                                                    
ww3_tp2.17/./work_ma                     (1 files differ)                                                                          
ww3_tp2.17/./work_mc1                     (1 files differ)                                                                         
ww3_tp2.17/./work_mb                     (1 files differ)                                                                          
ww3_tp2.17/./work_mc                     (1 files differ)                                                                          
ww3_tp2.17/./work_ma1                     (1 files differ)                                                                         
ww3_tp2.6/./work_ST0                     (1 files differ)                                                                          
ww3_tp2.6/./work_ST4                     (1 files differ)                                                                          
ww3_tp2.6/./work_pdlib                     (1 files differ)                                                                        
ww3_ufs1.3/./work_a                     (1 files differ)                                                                                                                                                                                             
**********************************************************************                                                             
************************ identical cases *****************************                                                             
**********************************************************************

@MatthewMasarik-NOAA MatthewMasarik-NOAA merged commit e90487d into NOAA-EMC:develop Oct 3, 2022
@MatthewMasarik-NOAA
Copy link
Collaborator

Thanks again for your work, @ukmo-juan-castillo !

@ukmo-ccbunney ukmo-ccbunney deleted the bf_rho-input-time branch May 12, 2023 12:27
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.

Inconsistent time in air density input
3 participants