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

fixed issue with decomp-change RT failures with ugwpv1 and made other… #728

Merged
merged 1 commit into from
Sep 29, 2021
Merged

fixed issue with decomp-change RT failures with ugwpv1 and made other… #728

merged 1 commit into from
Sep 29, 2021

Conversation

mdtoy
Copy link
Collaborator

@mdtoy mdtoy commented Sep 12, 2021

drag_suite.F90:
Substantial changes to fix problem of lack of reproducibility when changing the domain decomposition layout. Basically, the problem was that the "scale aware" feature used the grid size "dx" at one representative point, i.e., dx(1). This would of course vary depending on the domain decomposition. The code was changed to test the value of "dx" at every grid point. Associated with this change, the dimensionality of the following variables was changed:

  1. ss_taper, ls_taper from a scalar to a vector of dimension im.
  2. dxy4, dxy4p from dimension (4) to dimension (im,4).

Instead of multiple loops over i, there is now only one loop over i per drag component, i.e., large-scale+blocking, ssGWD and form drag.

There was also a bug found in the semi-implicit time step treatment of the v-wind component of the SSGWD. This was fixed.

cires_ugwpv1_oro.F90:
Fixed a bug in the calculation of the pdudt and pdvdt tendencies.

ugwpv1_gsldrag.F90:
Fixed a bug in the if-then logic beginning on line 536. Changed "else" on line 584 to "endif". The problem was that with the "else" statement, it was impossible to combine the small-scale GSL drag schemes (SSGWD and form drag) with the ugwpv1 orog_only drag scheme.

Copy link
Collaborator

@climbfuji climbfuji left a comment

Choose a reason for hiding this comment

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

Looks good to me, definitely makes sense to not rely on the first grid column the way the code was written. You could have use global mpi comm to get a mean dx at initialization and use this throughout, but as your comments in the code said would require the mean to be representative for all grid columns.

Copy link
Collaborator

@yangfanglin yangfanglin left a comment

Choose a reason for hiding this comment

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

Mike, does the updates (except for the bug fixes) change forecasts ?

@@ -908,8 +908,8 @@ subroutine orogw_v1 (im, km, imx, me, master, dtp, kdt, do_tofd, &
dudt_obl(j,k) = -dbim * u1(j,k)
dvdt_obl(j,k) = -dbim * v1(j,k)

pdvdt(j,k) = dudt_obl(j,k) +pdvdt(j,k)
pdudt(j,k) = dvdt_obl(j,k) +pdudt(j,k)
pdudt(j,k) = dudt_obl(j,k) +pdudt(j,k)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Mike, are pdudt and pdvdt diagnostics ? Does this bug have any impact on forecast ?

@mdtoy
Copy link
Collaborator Author

mdtoy commented Sep 13, 2021 via email

climbfuji added a commit that referenced this pull request Sep 29, 2021
Wrapper PR for #728 (UGWPv1 decomp bug fixes) and #745 (remove Julie from CODEOWNERS) - this PR only combines #728 and #745 from other contributors, no additional code changes. I reviewed and approved the two original PRs.
@climbfuji climbfuji merged commit 565b147 into NCAR:main Sep 29, 2021
junwang-noaa pushed a commit to ufs-community/ufs-weather-model that referenced this pull request Sep 29, 2021
…bug fix in tests/run_compile.sh (#835)

* Bug fix in tests/run_compile.sh to correctly detect failed compile jobs
* Fix permissions for tests/run_compile.sh
* Substantial changes in UGWPv1 to fix problem of lack of reproducibility when changing the domain decomposition layout. Remove Julie from CODEOWNERS files in both ccpp-framework and ccpp-physics. See NCAR/ccpp-physics#728 for a detailed description of the UGWPv1 updates.
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.

4 participants