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

code changes for addressing a regional lateral boundary condition issue #173

Merged
merged 3 commits into from
Feb 25, 2022
Merged

code changes for addressing a regional lateral boundary condition issue #173

merged 3 commits into from
Feb 25, 2022

Conversation

MatthewPyle-NOAA
Copy link
Contributor

Description

Makes a change in regional lateral boundary condition (LBC) processing to prevent an unintended scenario that leads to the temporary usage of older wind values along the boundary immediately before fresh LBC information is ingested. This change smooths out a transient spike in domain-averaged surface pressure tendency values seen at the frequency of LBC updates.

Fixes #(issue #169)

How Has This Been Tested?

The fix was initially tested using a canned UFS Short Range Weather App case (which with 6 h LBC updates was very sensitive to the problem being solved). More recent testing was made using various UFS regression tests in the context of the latest UFS code. The hafs_regional_atm test was the most scrutinized, as it was one of the few regional regression tests with both nrows_blend > 0 and a multi-hour LBC update frequency.

The proposed fix changes answers for regional tests, but not for global tests. All of the testing thus far has been made with Intel compiled code on various WCOSS platforms (WCOSS-cray, WCOSS-dellp3, WCOSS2).

Checklist:

Please check all whether they apply or not

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

Copy link
Contributor

@lharris4 lharris4 left a comment

Choose a reason for hiding this comment

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

This is the right way to implement this change. Thank you for making this modification to the code.

@junwang-noaa
Copy link
Collaborator

@laurenchilutti Matt created a ufs-weather-model PR#1050, is it OK we put the PR to the commit queue?

@laurenchilutti
Copy link
Contributor

@laurenchilutti Matt created a ufs-weather-model PR#1050, is it OK we put the PR to the commit queue?

@junwang-noaa What does adding this to the commit queue entail? We are still waiting for one more review to be complete.

@junwang-noaa
Copy link
Collaborator

@laurenchilutti Putting the PR in the commit queue means the code is ready for commit, so it's better doing it after the reviewers approve the code changes. Some times final review is also needed at the code commit time when merge conflicts are resolved. Please let us know when the review is done. Thank you!

@laurenchilutti
Copy link
Contributor

@laurenchilutti Putting the PR in the commit queue means the code is ready for commit, so it's better doing it after the reviewers approve the code changes. Some times final review is also needed at the code commit time when merge conflicts are resolved. Please let us know when the review is done. Thank you!

@junwang-noaa This PR is now ready to be added to the commit queue. Please let me know when I can merge this.

@junwang-noaa
Copy link
Collaborator

junwang-noaa commented Feb 16, 2022 via email

@junwang-noaa
Copy link
Collaborator

@laurenchilutti All the RT passed, would you please commit this PR? Thanks

@laurenchilutti laurenchilutti merged commit 7ce7aa9 into NOAA-GFDL:dev/emc Feb 25, 2022
MinsukJi-NOAA added a commit to NOAA-EMC/GFDL_atmos_cubed_sphere that referenced this pull request Mar 2, 2022
* Add get_nth_domain_info subroutine

* Deallocate local arrays in fv_dyn_bundle_setup

* adding back a line that was mistakenly deleted in a previous commit (NOAA-GFDL#166)

* Do not print debug messages to stderr

* fix for 4diau with iau_filter_increments=T (NOAA-GFDL#167)

* fix for 4diau with iau_filter_increments=T

* fix time interval for 3DIAU

* fix typo in comment

* fix bug found in review by @MingjingTong-NOAA

* change tnext to integer variable itnext

Co-authored-by: jswhit2 <[email protected]>

* Use mpp_error instead of write statements in model/fv_regional_bc.F90

* Attempt at integrating fixes on top of dev/emc branch. (NOAA-GFDL#173)

Co-authored-by: Dusan Jovic <[email protected]>
Co-authored-by: laurenchilutti <[email protected]>
Co-authored-by: Jeff Whitaker <[email protected]>
Co-authored-by: jswhit2 <[email protected]>
Co-authored-by: MatthewPyle-NOAA <[email protected]>
MinsukJi-NOAA added a commit to NOAA-EMC/GFDL_atmos_cubed_sphere that referenced this pull request Mar 30, 2022
* Add get_nth_domain_info subroutine

* Deallocate local arrays in fv_dyn_bundle_setup

* adding back a line that was mistakenly deleted in a previous commit (NOAA-GFDL#166)

* Do not print debug messages to stderr

* fix for 4diau with iau_filter_increments=T (NOAA-GFDL#167)

* fix for 4diau with iau_filter_increments=T

* fix time interval for 3DIAU

* fix typo in comment

* fix bug found in review by @MingjingTong-NOAA

* change tnext to integer variable itnext

Co-authored-by: jswhit2 <[email protected]>

* Use mpp_error instead of write statements in model/fv_regional_bc.F90

* Attempt at integrating fixes on top of dev/emc branch. (NOAA-GFDL#173)

* Support for cloud microphysics hail species (NOAA-GFDL#171)

* Incorporated Tim Supinie's updates to handle a hail category (nwat=7)

* Added print for hail max/min (non-debug section)

* Add hallwat to !OMP shared variables in main loop

Addresses compile failure when OMP is turned on (e.g., on Hera)

* Update to states as used in SFE2021
(Removed SFE code for now)

* Cleanup after rebase

* Redo removal of alt. namelist read

* Removed tools/module_diag_hailcast.F90

* Fixes from Jili Dong

* Add hailwat to tools/external_ic.F90

* Set logic in fv_regional_bc.F90 to match current code; Change logic in external_ic.F90 to check value of nwat

* Recommended changes

* Check actual index (hailwat) instead of assuming a positive value based on 'nwat' value

* Split nwat=7 bits into separate loops (see if it affects nwat=6)

Co-authored-by: Larissa Reames <[email protected]>
Co-authored-by: LarissaReames-NOAA <[email protected]>

Co-authored-by: Dusan Jovic <[email protected]>
Co-authored-by: laurenchilutti <[email protected]>
Co-authored-by: Jeff Whitaker <[email protected]>
Co-authored-by: jswhit2 <[email protected]>
Co-authored-by: MatthewPyle-NOAA <[email protected]>
Co-authored-by: Ted Mansell <[email protected]>
Co-authored-by: Larissa Reames <[email protected]>
Co-authored-by: LarissaReames-NOAA <[email protected]>
@MatthewPyle-NOAA MatthewPyle-NOAA deleted the feature/devemc_lbcfix branch April 1, 2022 20:42
bensonr pushed a commit to bensonr/GFDL_atmos_cubed_sphere that referenced this pull request Apr 19, 2022
laurenchilutti added a commit that referenced this pull request Oct 13, 2022
* updated fv_regional_bc.F90 to read levsp from GFS_ctl file (#152)

* Updating a continue statement in fv_nudge (#153)

* update in fv_nudge to fix 666 label logic

* fix logic errors (#138)

* update to external_ic::remap_scale to skip remapping non-existent IC tracers (#159)

* Fix nudge logic (#157)

* fix logic errors

* fix answer changes

* adding back a line that was mistakenly deleted in a previous commit (#166)

* Release 042022 (#184)

* Merge of updates from GFDL Weather and Climate Dynamics Division (202204):

    *add license header to missing files and fix typo in header

    *updates needed for fv3_gfsphysics to have access to bounded_domain

    *remove obsoleted driver/SHiELD files

    *updating to fix bug where long_name and units attributes were not being captured in the RESTARTS

    *remove unused function fv_diagnostics::max_vorticity_hy1

    *remove avec timer remnants

    *adding ability to specify prefix and directory when reading and writing restarts

    *remove old style namelist read in favor of read from internal character variable

    *Added option for a mean wind

    *The planetary radius and rotation rate are now re-scalable by a namelist parameter (small_earth_scale) instead of using exclusively the hard-coded FMS constant.

    *fv_mapz: Cleanup and added helpful annotations to avoid getting lost so easily

    * remove duplicate code and fix lstatus on all grids depending on gfs_data and gfs_data.tile1

    * New idealized tests

    *Makes the non-hydrostatic restart variables optional for reads to allow hydrostatic ICs

    *Fix the hydrostatic TE remapping; Add GMAO cubic for TE remapping, which is used if kord_tm=0 and remap_te=.true.

    *Add a TE remapping option (kord_tm=0)

    *Addressing GNU Warnings

    *Add the L75 vertical config from HAFS

    * clean up fms_mp_mod and remove mp_bcst

* cherry pick 5193c6b from dev/emc

* Attempt at integrating fixes on top of dev/emc branch. (#173)

* remove outdated GFDL_tools/fv_diag_column.F90 which exists as the result of an improper merge.  The correct file is tools/fv_diag_column.F90 (#191)

* various io fixes (#192)

* fixes io performance issues by making everyone a reader when io_layout=1,1

adds capability to use FMS feature to ignore data integrity checksums in restarts

* rename enforce_rst_cksum to ignore_rst_cksum and change the default value for compatibility

* fix index error (#196)

* New notebooks (#190)

* Moving source files into source directory

* Added advection notebook

* Fixed subplot spacing

* New 3D case notebooks

* New idealized tests

Updated mtn_wave_tests_1km to restore missing graphics.

* first try at held-suarez

* Updated H-S superrotation notebook

* New level placement tool in an interactive note

* Minor updates to notebooks; deleted fv_eta binary.

* Regional decomposition test fix (when nrows_blend > 0) (#194) (#200)

* Regional bc blend changes to extend into interior halos and overlap on corners. Still not working for u and v.

dyn_core.F90 : Fix from Jun Wang to correct sync of u,v
fv_regional_bc.F90 : add check for nrows_blend > tile size; fix error when nrows_blend=1

Conflicts (not taken during chery-pick):
	driver/SHiELD/atmosphere.F90
	model/fv_sg.F90

Co-authored-by: Ted Mansell <[email protected]>

* Implementing CI (#207)

* CI Parallelworks update (#211)

* Update call to read_input_nml and remove unnecessary code. (#161)

* Removing use of INTERNAL_FILE_NML and cleaning up read_namelist_test_cases to remove unused argument

* deleting duplicate call to read_namelist_test_case_nml in fv_control

* removing commented code in fv_control

Co-authored-by: Rusty Benson <[email protected]>
Co-authored-by: menzel-gfdl <[email protected]>
Co-authored-by: Rusty Benson <[email protected]>
Co-authored-by: MatthewPyle-NOAA <[email protected]>
Co-authored-by: lharris4 <[email protected]>
Co-authored-by: Ted Mansell <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants