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

Make signs of fields exported by ATM consistent with positive-down for CMEPS #1807

Merged
merged 49 commits into from
Aug 14, 2023

Conversation

DeniseWorthen
Copy link
Collaborator

@DeniseWorthen DeniseWorthen commented Jun 26, 2023

Description

Current special merges in CMEPS and/or sign changes in component caps are required because the ATM component exports fields with the wrong sign (from the perspective of the component) and/or with because the ATM is exporting latent heat when the component expects the evaporative flux.

The fields affected are the momentum stresses and the sensible heat flux, both of which have the incorrect sign for MOM6 and/or HYCOM and the latent heat flux, which must be converted to evaporative flux for MOM6 within CMEPS.

Note: The change to allow ATM to export evap flux was merged previously in PR #1812

This PR applies the change of sign and/or unit conversion when the field is exported by the ATM and removes the specialized conversions and/or merges in CMEPS or the relevant cap. The exported fields will be consistent w/ the coupling definition of "positive down". This will make it easier to extend both the use of the diagnostic capabilities of CMEPS as well refactoring the esmFldsExhange_nems to remove much of the specialized logic for merges depending on the coupling_mode (ie, nems_orig, nems_orig_data etc).

Input data additions/changes

  • No changes are expected to input data.
  • Changes are expected to input data:
    • New input data.
    • Updated input data.

Anticipated changes to regression tests:

  • No changes are expected to any regression test.
  • Changes are expected to the following tests:

Cpld and hafs test change baselines because sign for the sensible, evaporative, latent and momentum within the mediator files are different. This was verified by running the full RT was run on Hera at commit f767818. In this case, all files except mediator history and restart files reproduce. Note that all DATM (ng-godas) tests reproduce because the fluxes in those cases are computed in the mediator and have the correct sense of positive down.

RegressionTests_hera.log

Failed tests
7399:001 cpld_control_p8_mixedmode_intel failed in check_result
7401:002 cpld_control_gfsv17_intel failed in check_result
7403:003 cpld_control_p8_intel failed in check_result
7405:005 cpld_control_qr_p8_intel failed in check_result
7407:007 cpld_2threads_p8_intel failed in check_result
7409:008 cpld_decomp_p8_intel failed in check_result
7411:009 cpld_mpi_p8_intel failed in check_result
7413:010 cpld_control_ciceC_p8_intel failed in check_result
7415:011 cpld_control_c192_p8_intel failed in check_result
7417:013 cpld_bmark_p8_intel failed in check_result
7419:015 cpld_control_noaero_p8_intel failed in check_result
7421:016 cpld_control_nowave_noaero_p8_intel failed in check_result
7423:017 cpld_debug_p8_intel failed in check_result
7425:018 cpld_debug_noaero_p8_intel failed in check_result
7427:020 cpld_control_c48_intel failed in check_result
7429:021 cpld_control_p8_faster_intel failed in check_result
7431:022 cpld_control_pdlib_p8_intel failed in check_result
7433:025 cpld_debug_pdlib_p8_intel failed in check_result
7435:132 hafs_regional_atm_ocn_intel failed in check_result
7437:134 hafs_regional_atm_ocn_wav_intel failed in check_result
7439:149 hafs_regional_docn_intel failed in check_result
7441:150 hafs_regional_docn_oisst_intel failed in check_result
7443:151 hafs_regional_datm_cdeps_intel failed in check_result
7445:232 cpld_control_p8_gnu failed in check_result
7447:233 cpld_control_nowave_noaero_p8_gnu failed in check_result
7449:234 cpld_debug_p8_gnu failed in check_result
7451:235 cpld_control_pdlib_p8_gnu failed in check_result
7453:236 cpld_debug_pdlib_p8_gnu failed in check_result
Non-reproducing files
tests/logs/log_hera: grep NOT rt_* 

rt_001_cpld_control_p8_mixedmode_intel.log:64: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
rt_002_cpld_control_gfsv17_intel.log:63: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
rt_003_cpld_control_p8_intel.log:64: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
rt_005_cpld_control_qr_p8_intel.log:64: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
rt_007_cpld_2threads_p8_intel.log:52: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
rt_008_cpld_decomp_p8_intel.log:52: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
rt_009_cpld_mpi_p8_intel.log:52: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
rt_010_cpld_control_ciceC_p8_intel.log:64: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
rt_011_cpld_control_c192_p8_intel.log:52: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-43200.nc ............ALT CHECK......NOT OK
rt_013_cpld_bmark_p8_intel.log:47: Comparing RESTART/ufs.cpld.cpl.r.2013-04-01-21600.nc ............ALT CHECK......NOT OK
rt_015_cpld_control_noaero_p8_intel.log:63: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
rt_016_cpld_control_nowave_noaero_p8_intel.log:63: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
rt_017_cpld_debug_p8_intel.log:52: Comparing RESTART/ufs.cpld.cpl.r.2021-03-22-32400.nc ............ALT CHECK......NOT OK
rt_018_cpld_debug_noaero_p8_intel.log:51: Comparing RESTART/ufs.cpld.cpl.r.2021-03-22-32400.nc ............ALT CHECK......NOT OK
rt_020_cpld_control_c48_intel.log:51: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
rt_021_cpld_control_p8_faster_intel.log:64: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
rt_022_cpld_control_pdlib_p8_intel.log:63: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
rt_025_cpld_debug_pdlib_p8_intel.log:51: Comparing RESTART/ufs.cpld.cpl.r.2021-03-22-32400.nc ............ALT CHECK......NOT OK
rt_132_hafs_regional_atm_ocn_intel.log:9: Comparing ufs.hafs.cpl.hi.2019-08-29-21600.nc ............ALT CHECK......NOT OK
rt_132_hafs_regional_atm_ocn_intel.log:10: Comparing ufs.hafs.cpl.r.2019-08-29-21600.nc ............ALT CHECK......NOT OK
rt_134_hafs_regional_atm_ocn_wav_intel.log:12: Comparing ufs.hafs.cpl.r.2019-08-29-21600.nc ............ALT CHECK......NOT OK
rt_149_hafs_regional_docn_intel.log:7: Comparing ufs.hafs.cpl.hi.2019-08-29-21600.nc ............ALT CHECK......NOT OK
rt_149_hafs_regional_docn_intel.log:8: Comparing ufs.hafs.cpl.r.2019-08-29-21600.nc ............ALT CHECK......NOT OK
rt_150_hafs_regional_docn_oisst_intel.log:7: Comparing ufs.hafs.cpl.hi.2019-08-29-21600.nc ............ALT CHECK......NOT OK
rt_150_hafs_regional_docn_oisst_intel.log:8: Comparing ufs.hafs.cpl.r.2019-08-29-21600.nc ............ALT CHECK......NOT OK
rt_151_hafs_regional_datm_cdeps_intel.log:5: Comparing ufs.hafs.cpl.hi.2019-08-30-00000.nc ............ALT CHECK......NOT OK
rt_151_hafs_regional_datm_cdeps_intel.log:6: Comparing ufs.hafs.cpl.r.2019-08-30-00000.nc ............ALT CHECK......NOT OK
rt_232_cpld_control_p8_gnu.log:64: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
rt_233_cpld_control_nowave_noaero_p8_gnu.log:63: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
rt_234_cpld_debug_p8_gnu.log:52: Comparing RESTART/ufs.cpld.cpl.r.2021-03-22-32400.nc ............ALT CHECK......NOT OK
rt_235_cpld_control_pdlib_p8_gnu.log:63: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
rt_236_cpld_debug_pdlib_p8_gnu.log:51: Comparing RESTART/ufs.cpld.cpl.r.2021-03-22-32400.nc ............ALT CHECK......NOT OK

Subcomponents involved:

  • AQM
  • CDEPS
  • CICE
  • CMEPS
  • CMakeModules
  • FV3
  • GOCART
  • HYCOM
  • MOM6
  • NOAHMP
  • WW3
  • stochastic_physics
  • none

Library Updates/Changes

  • Not Needed
  • Create separate issue in JCSDA/spack-stack asking for update to library. Include library name, library version.
  • Add issue link from JCSDA/spack-stack following this item

Combined with PR's (If Applicable):

Commit Queue Checklist:

  • Link PR's from all sub-components involved in section below
  • Confirm reviews completed in ALL sub-component PR's
  • Add all appropriate labels to this PR.
  • Run full RT suite on either Hera/Cheyenne AND attach log to a PR comment.
  • Add list of any failed regression tests to "Anticipated changes to regression tests" section.

Linked PR's and Issues:

Testing Day Checklist:

  • This PR is up-to-date with the top of all sub-component repositories except for those sub-components which are the subject of this PR.
  • Move new/updated input data on RDHPCS Hera and propagate input data changes to all supported systems.

Testing Log (for CM's):

  • RDHPCS
    • Hera
    • Orion
    • Jet
    • Gaea
    • Cheyenne
  • WCOSS2
    • Dogwood/Cactus
    • Acorn
  • CI
    • Completed
  • opnReqTest
    • N/A
    • Log attached to comment

DeniseWorthen and others added 12 commits June 21, 2023 11:05
*a subset of tests which use tauxy from ATM were run. Failures are due
solely to the change of sign of the taux,y fields in either the mediator
or history files. All other files are identical

rt_004_cpld_control_noaero_p8_agrid_intel.log:68:Test 004 cpld_control_noaero_p8_agrid_intel PASS
rt_006_hafs_regional_storm_following_1nest_atm_ocn_intel.log:15:Test 006 hafs_regional_storm_following_1nest_atm_ocn_intel PASS
rt_007_hafs_regional_storm_following_1nest_atm_ocn_debug_intel.log:13:Test 007 hafs_regional_storm_following_1nest_atm_ocn_debug_intel PASS
rt_008_hafs_regional_storm_following_1nest_atm_ocn_wav_intel.log:17:Test 008 hafs_regional_storm_following_1nest_atm_ocn_wav_intel PASS
rt_012_datm_cdeps_control_cfsr_intel.log:12:Test 012 datm_cdeps_control_cfsr_intel PASS
rt_013_datm_cdeps_control_gefs_intel.log:12:Test 013 datm_cdeps_control_gefs_intel PASS
rt_014_datm_cdeps_bulk_cfsr_intel.log:12:Test 014 datm_cdeps_bulk_cfsr_intel PASS
rt_015_datm_cdeps_bulk_gefs_intel.log:12:Test 015 datm_cdeps_bulk_gefs_intel PASS
rt_016_datm_cdeps_gfs_intel.log:12:Test 016 datm_cdeps_gfs_intel PASS
rt_017_datm_cdeps_lnd_gswp3_intel.log:15:Test 017 datm_cdeps_lnd_gswp3_intel PASS
rt_018_datm_cdeps_lnd_gswp3_rst_intel.log:15:Test 018 datm_cdeps_lnd_gswp3_rst_intel PASS
rt_019_control_p8_atmlnd_sbs_intel.log:91:Test 019 control_p8_atmlnd_sbs_intel PASS
rt_020_atmaero_control_p8_intel.log:50:Test 020 atmaero_control_p8_intel PASS
rt_021_atmaero_control_p8_rad_intel.log:50:Test 021 atmaero_control_p8_rad_intel PASS
rt_022_atmaero_control_p8_rad_micro_intel.log:50:Test 022 atmaero_control_p8_rad_micro_intel PASS
rt_023_regional_atmaq_intel.log:22:Test 023 regional_atmaq_intel PASS

rt_001_cpld_control_p8_intel.log:64: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
rt_002_cpld_control_noaero_p8_intel.log:63: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
rt_003_cpld_control_nowave_noaero_p8_intel.log:63: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
rt_005_hafs_regional_atm_ocn_wav_intel.log:12: Comparing ufs.hafs.cpl.r.2019-08-29-21600.nc ............ALT CHECK......NOT OK
rt_009_hafs_regional_docn_intel.log:7: Comparing ufs.hafs.cpl.hi.2019-08-29-21600.nc ............ALT CHECK......NOT OK
rt_009_hafs_regional_docn_intel.log:8: Comparing ufs.hafs.cpl.r.2019-08-29-21600.nc ............ALT CHECK......NOT OK
rt_010_hafs_regional_docn_oisst_intel.log:7: Comparing ufs.hafs.cpl.hi.2019-08-29-21600.nc ............ALT CHECK......NOT OK
rt_010_hafs_regional_docn_oisst_intel.log:8: Comparing ufs.hafs.cpl.r.2019-08-29-21600.nc ............ALT CHECK......NOT OK
rt_011_hafs_regional_datm_cdeps_intel.log:5: Comparing ufs.hafs.cpl.hi.2019-08-30-00000.nc ............ALT CHECK......NOT OK
rt_011_hafs_regional_datm_cdeps_intel.log:6: Comparing ufs.hafs.cpl.r.2019-08-30-00000.nc ............ALT CHECK......NOT OK
* baselines fail due to change in sign for mediator restart and
history files

rt_004_cpld_control_noaero_p8_agrid_intel.log:68:Test 004 cpld_control_noaero_p8_agrid_intel PASS
rt_006_hafs_regional_atm_wav_intel.log:15:Test 006 hafs_regional_atm_wav_intel PASS
rt_008_hafs_regional_storm_following_1nest_atm_ocn_intel.log:15:Test 008 hafs_regional_storm_following_1nest_atm_ocn_intel PASS
rt_009_hafs_regional_storm_following_1nest_atm_ocn_wav_intel.log:17:Test 009 hafs_regional_storm_following_1nest_atm_ocn_wav_intel PASS
rt_013_datm_cdeps_control_cfsr_intel.log:12:Test 013 datm_cdeps_control_cfsr_intel PASS
rt_014_datm_cdeps_control_gefs_intel.log:12:Test 014 datm_cdeps_control_gefs_intel PASS
rt_015_datm_cdeps_iau_gefs_intel.log:12:Test 015 datm_cdeps_iau_gefs_intel PASS
rt_016_datm_cdeps_stochy_gefs_intel.log:12:Test 016 datm_cdeps_stochy_gefs_intel PASS
rt_017_datm_cdeps_ciceC_cfsr_intel.log:12:Test 017 datm_cdeps_ciceC_cfsr_intel PASS
rt_018_datm_cdeps_bulk_cfsr_intel.log:12:Test 018 datm_cdeps_bulk_cfsr_intel PASS
rt_019_datm_cdeps_bulk_gefs_intel.log:12:Test 019 datm_cdeps_bulk_gefs_intel PASS
rt_020_datm_cdeps_multiple_files_cfsr_intel.log:10:Test 020 datm_cdeps_multiple_files_cfsr_intel PASS
rt_021_datm_cdeps_3072x1536_cfsr_intel.log:12:Test 021 datm_cdeps_3072x1536_cfsr_intel PASS
rt_022_datm_cdeps_gfs_intel.log:12:Test 022 datm_cdeps_gfs_intel PASS
rt_023_datm_cdeps_lnd_gswp3_intel.log:15:Test 023 datm_cdeps_lnd_gswp3_intel PASS
rt_024_control_p8_atmlnd_sbs_intel.log:91:Test 024 control_p8_atmlnd_sbs_intel PASS
rt_025_atmwav_control_noaero_p8_intel.log:49:Test 025 atmwav_control_noaero_p8_intel PASS

rt_001_cpld_control_p8_intel.log:64: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
rt_002_cpld_control_noaero_p8_intel.log:63: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
rt_003_cpld_control_nowave_noaero_p8_intel.log:63: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
rt_005_hafs_regional_atm_ocn_intel.log:9: Comparing ufs.hafs.cpl.hi.2019-08-29-21600.nc ............ALT CHECK......NOT OK
rt_005_hafs_regional_atm_ocn_intel.log:10: Comparing ufs.hafs.cpl.r.2019-08-29-21600.nc ............ALT CHECK......NOT OK
rt_007_hafs_regional_atm_ocn_wav_intel.log:12: Comparing ufs.hafs.cpl.r.2019-08-29-21600.nc ............ALT CHECK......NOT OK
rt_010_hafs_regional_docn_intel.log:7: Comparing ufs.hafs.cpl.hi.2019-08-29-21600.nc ............ALT CHECK......NOT OK
rt_010_hafs_regional_docn_intel.log:8: Comparing ufs.hafs.cpl.r.2019-08-29-21600.nc ............ALT CHECK......NOT OK
rt_011_hafs_regional_docn_oisst_intel.log:7: Comparing ufs.hafs.cpl.hi.2019-08-29-21600.nc ............ALT CHECK......NOT OK
rt_011_hafs_regional_docn_oisst_intel.log:8: Comparing ufs.hafs.cpl.r.2019-08-29-21600.nc ............ALT CHECK......NOT OK
rt_012_hafs_regional_datm_cdeps_intel.log:5: Comparing ufs.hafs.cpl.hi.2019-08-30-00000.nc ............ALT CHECK......NOT OK
rt_012_hafs_regional_datm_cdeps_intel.log:6: Comparing ufs.hafs.cpl.r.2019-08-30-00000.nc ............ALT CHECK......NOT OK
* adding evap changes was found to break baselines. So backed up
to commit ee65372 and ran full RT suite on Hera to verify only
mediator history and restart files change. The following files
failed to repro for the full RT. All other files pass

131: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
202: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
274: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
346: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
406: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
466: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
526: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
598: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
658: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-43200.nc ............ALT CHECK......NOT OK
713: Comparing RESTART/ufs.cpld.cpl.r.2013-04-01-21600.nc ............ALT CHECK......NOT OK
784: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
855: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
913: Comparing RESTART/ufs.cpld.cpl.r.2021-03-22-32400.nc ............ALT CHECK......NOT OK
972: Comparing RESTART/ufs.cpld.cpl.r.2021-03-22-32400.nc ............ALT CHECK......NOT OK
1100: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
1157: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-43200.nc ............ALT CHECK......NOT OK
1227: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
1298: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
1357: Comparing RESTART/ufs.cpld.cpl.r.2021-03-22-32400.nc ............ALT CHECK......NOT OK
4252: Comparing ufs.hafs.cpl.hi.2019-08-29-21600.nc ............ALT CHECK......NOT OK
4253: Comparing ufs.hafs.cpl.r.2019-08-29-21600.nc ............ALT CHECK......NOT OK
4287: Comparing ufs.hafs.cpl.r.2019-08-29-21600.nc ............ALT CHECK......NOT OK
4796: Comparing ufs.hafs.cpl.hi.2019-08-29-21600.nc ............ALT CHECK......NOT OK
4797: Comparing ufs.hafs.cpl.r.2019-08-29-21600.nc ............ALT CHECK......NOT OK
4811: Comparing ufs.hafs.cpl.hi.2019-08-29-21600.nc ............ALT CHECK......NOT OK
4812: Comparing ufs.hafs.cpl.r.2019-08-29-21600.nc ............ALT CHECK......NOT OK
4824: Comparing ufs.hafs.cpl.hi.2019-08-30-00000.nc ............ALT CHECK......NOT OK
4825: Comparing ufs.hafs.cpl.r.2019-08-30-00000.nc ............ALT CHECK......NOT OK
7174: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
7245: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
7303: Comparing RESTART/ufs.cpld.cpl.r.2021-03-22-32400.nc ............ALT CHECK......NOT OK
7374: Comparing RESTART/ufs.cpld.cpl.r.2021-03-23-21600.nc ............ALT CHECK......NOT OK
7433: Comparing RESTART/ufs.cpld.cpl.r.2021-03-22-32400.nc ............ALT CHECK......NOT OK

138:Test 001 cpld_control_p8_mixedmode_intel FAIL
209:Test 002 cpld_control_gfsv17_intel FAIL
281:Test 003 cpld_control_p8_intel FAIL
353:Test 005 cpld_control_qr_p8_intel FAIL
413:Test 007 cpld_2threads_p8_intel FAIL
473:Test 008 cpld_decomp_p8_intel FAIL
533:Test 009 cpld_mpi_p8_intel FAIL
605:Test 010 cpld_control_ciceC_p8_intel FAIL
665:Test 011 cpld_control_c192_p8_intel FAIL
720:Test 013 cpld_bmark_p8_intel FAIL
791:Test 015 cpld_control_noaero_p8_intel FAIL
860:Test 016 cpld_control_nowave_noaero_p8_intel FAIL
920:Test 017 cpld_debug_p8_intel FAIL
979:Test 018 cpld_debug_noaero_p8_intel FAIL
1105:Test 020 cpld_control_c48_intel FAIL
1162:Test 021 cpld_warmstart_c48_intel FAIL
1234:Test 023 cpld_control_p8_faster_intel FAIL
1305:Test 024 cpld_control_pdlib_p8_intel FAIL
1364:Test 027 cpld_debug_pdlib_p8_intel FAIL
4258:Test 134 hafs_regional_atm_ocn_intel FAIL
4292:Test 136 hafs_regional_atm_ocn_wav_intel FAIL
4803:Test 151 hafs_regional_docn_intel FAIL
4818:Test 152 hafs_regional_docn_oisst_intel FAIL
4831:Test 153 hafs_regional_datm_cdeps_intel FAIL
7181:Test 234 cpld_control_p8_gnu FAIL
7250:Test 235 cpld_control_nowave_noaero_p8_gnu FAIL
7310:Test 236 cpld_debug_p8_gnu FAIL
7381:Test 237 cpld_control_pdlib_p8_gnu FAIL
7440:Test 238 cpld_debug_pdlib_p8_gnu FAIL
@DeniseWorthen DeniseWorthen changed the title WIP: Make signs and units of fields consistent with component requirements WIP: Make signs and units of fields exported by ATM consistent with component requirements Jun 26, 2023
@junwang-noaa
Copy link
Collaborator

Is the sign swapping in HYCOM required just because the sign in swapped in fv3? I still feel this rule of requiring all the components to provide "positive down" in CMEPS could add additional burden in the component level. In this case, it seems to me MOM6 requires positive down while HYCOM needs "positive up". Also how about wind direction? Will CMEPS add some rules on wind direction? I think we need to allow component to be "self described", the direction (up/east as positive) can be defined as attributes. Mediator can decide if sign switching is needs for the coupling fields between two components. I am worried as we are using pointers for the coupling fields between fv3 and GOCART, which does not use CMEPS but connectors. Now we have to force fv3 and gocart to change signs because of CMEPS.

@DeniseWorthen
Copy link
Collaborator Author

DeniseWorthen commented Jun 26, 2023

@junwang-noaa I've run the full RT suite and the only tests that are changing are the expected ones (coupled or hafs).

Edit--removed previous text since I didn't state it correctly. HYCOM uses the fluxes with a (-1) applied. So it also internally defines "positive down" (sfcflux = ~ rad flux - sensible flux - latent flux).

Basically I think the fields exported by a component should be in the sense "positive down" and consistent between components. To me, having ATM export fields to other components with the sign defined for the ATM's use doesn't make sense---these are the fields that are being sent to other components. Within the coupled system, there should be a consistent definition of the direction of the fluxes.

* only mediator related files do not compare B4B due to sign change

30: Comparing ufs.hafs.cpl.hi.2019-08-29-21600.nc ............ALT CHECK......NOT OK
31: Comparing ufs.hafs.cpl.r.2019-08-29-21600.nc ............ALT CHECK......NOT OK
65: Comparing ufs.hafs.cpl.r.2019-08-29-21600.nc ............ALT CHECK......NOT OK
126: Comparing ufs.hafs.cpl.hi.2019-08-29-21600.nc ............ALT CHECK......NOT OK
127: Comparing ufs.hafs.cpl.r.2019-08-29-21600.nc ............ALT CHECK......NOT OK
141: Comparing ufs.hafs.cpl.hi.2019-08-29-21600.nc ............ALT CHECK......NOT OK
142: Comparing ufs.hafs.cpl.r.2019-08-29-21600.nc ............ALT CHECK......NOT OK
154: Comparing ufs.hafs.cpl.hi.2019-08-30-00000.nc ............ALT CHECK......NOT OK
155: Comparing ufs.hafs.cpl.r.2019-08-30-00000.nc ............ALT CHECK......NOT OK
@junwang-noaa
Copy link
Collaborator

I see. So the proposed change here is that fv3atm only changes signs for those fields sent to ocn (mom6/hycom), not all the fields in its export state such as:

https://github.com/NOAA-EMC/fv3atm/blob/develop/atmos_model.F90#L1505

@DeniseWorthen
Copy link
Collaborator Author

The changes are actually all in the block_data_copy of setup_exportdata:

(https://github.com/DeniseWorthen/fv3atm/blob/32fb333e6eb0df3eabcc4e864ef34edb8d7ac0bd/atmos_model.F90#L2994-L2995)

@zach1221
Copy link
Collaborator

Hey, @DeniseWorthen . I'm still trying to pin down when these qr tests started to have issues. I think it started around the time this issue was created 1832. Which I guess makes sense if PR 1812 was the last time these tests matched without issue, but I don't understand why it only fails to match against certain files on Cheyenne only. I think I can get it figured out, but it may take some more time.

@jkbk2004
Copy link
Collaborator

I agree we need to work on cheyenne adn skip cheyenne for this pr. On my side, I am not able to build even.

@natalie-perlin
Copy link
Collaborator

@jkbk2004 @zach1221,
Please let me know what issues still exist on Cheyenne, and how could I reproduce the error. There should be no missing libraries (if the complaint is about the missing libraries).

@zach1221
Copy link
Collaborator

Hi, @natalie-perlin . Sure, I'll reach out to you if needed. I created this issue here, to continue working on the problem.

Since it sounds like we're in agreement on the testing being finished for this PR, we can begin the merge process.

@DeniseWorthen
Copy link
Collaborator Author

DeniseWorthen commented Aug 14, 2023

@jkbk2004 If tests being turned off on Cheyenne then we need a push to turn off the non-reproing tests and then the Cheyenne log posted. As I understand, only a subset of tests is not running on Cheyenne but the baseline otherwise exists and reproduces.

@zach1221
Copy link
Collaborator

@jkbk2004 If tests being turned off on Cheyenne then we need a push to turn off the non-reproing tests and then the Cheyenne log posted. As I understand, only a subset of tests is not running on Cheyenne but the baseline otherwise exists and reproduces.

@DeniseWorthen this is correct. I can push the log to this PR that has all the other tests passing. It will just show that those four qr cases failed.

@DeniseWorthen
Copy link
Collaborator Author

DeniseWorthen commented Aug 14, 2023

What we need is 1) turn off the tests in rt.conf for cheyenne. 2) A passing cheyenne.log with those turned off.

@zach1221
Copy link
Collaborator

What we need is 1) turn off the tests in rt.conf for cheyenne. 2) A passing cheyenne.log with those turned off.

@DeniseWorthen sure, I can commit the change to rt.conf now, and re-run the tests on Cheyenne following the change.

@DeniseWorthen
Copy link
Collaborator Author

@zach1221 At some point you had issues with compiling pdlib cases. How were those resolved?

@zach1221
Copy link
Collaborator

@zach1221 At some point you had issues with compiling pdlib cases. How were those resolved?

@DeniseWorthen that was an issue with Scotch loading that Natalie resolved.

tests/rt.conf Outdated Show resolved Hide resolved
@DeniseWorthen
Copy link
Collaborator Author

@zach1221 I will update HYCOM and CMEPS. FV3atm is approved, but I can't remember if I have permissions to merge.

@zach1221
Copy link
Collaborator

@DeniseWorthen Sounds good. No worries on FV3atm. I believe @jkbk2004 has authority to merge.

@jkbk2004
Copy link
Collaborator

fv3atm pr was merged.

@zach1221
Copy link
Collaborator

zach1221 commented Aug 14, 2023

fv3atm pr was merged.

Thanks, Jong. @DeniseWorthen please update submodule pointer and revert .gitmodules for fv3atm.

Edit: for both cmeps and fv3atm I should say.

Copy link
Collaborator

@Qingfu-Liu Qingfu-Liu left a comment

Choose a reason for hiding this comment

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

The changes look good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Baseline Updates Current baselines will be updated. jenkins-ci Jenkins CI: ORT build/test on docker container Ready for Commit Queue The PR is ready for the Commit Queue. All checkboxes in PR template have been checked.
Projects
None yet