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

Remove namelist spec_bdy_final_mu #1490

Merged
merged 1 commit into from Apr 28, 2021

Conversation

weiwangncar
Copy link
Collaborator

@weiwangncar weiwangncar commented Apr 24, 2021

Remove namelist spec_bdy_final_mu.

TYPE: no impact

KEYWORDS: lateral boundary call, spec_bdy_final, spec_bdy_final_mu

SOURCE: internal

DESCRIPTION OF CHANGES:
Problem:
The namelist spec_bdy_final_mu was introduced in 3.7 for an ad-hoc fix to the restart problem when spec_bdy_final calls were introduced to ensure the lateral boundary conditions do not drift by using tendencies only. The default has been to call this routine all the time, and not calling this routine does not fix any restart problem any more.

Solution:
Remove this namelist in the code, and make the code cleaner.

LIST OF MODIFIED FILES:
M Registry/Registry.EM_COMMON
M dyn_em/solve_em.F
M run/README.namelist
M share/output_wrf.F
M wrftladj/solve_em_ad.F
M wrftladj/solve_em_tl.F

TESTS CONDUCTED:

  1. The code change does not have impact to the results.
  2. The Jenkins tests all passing.

RELEASE NOTE: Namelist variable spec_bdy_final_mu is removed. It is redundant.

@weiwangncar weiwangncar requested review from as code owners Apr 24, 2021
@weiwangncar
Copy link
Collaborator Author

@weiwangncar weiwangncar commented Apr 24, 2021

It passed the Jenkins tests:

Test Type              | Expected  | Received |  Failed
= = = = = = = = = = = = = = = = = = = = = = = =  = = = =
Number of Tests        : 19           18
Number of Builds       : 48           46
Number of Simulations  : 163           161        0
Number of Comparisons  : 103           102        0

Failed Simulations are: 
None
Which comparisons are not bit-for-bit: 
None

Copy link
Collaborator

@davegill davegill left a comment

Approved

@dudhia
Copy link
Collaborator

@dudhia dudhia commented Apr 26, 2021

Are you saying it has no use and there is still a restart problem after removing this?

@weiwangncar
Copy link
Collaborator Author

@weiwangncar weiwangncar commented Apr 26, 2021

@dudhia I'm saying that the code checks if spec_bdy_final_mu = 1, and the default value of this namelist is 1, so it doesn't do anything. Besides, at least for recent versions, setting this namelist to zero (meaning not calling spec_bdy_final for mu) does not do anything for the restart problem either.

@dudhia
Copy link
Collaborator

@dudhia dudhia commented Apr 26, 2021

@weiwangncar
Copy link
Collaborator Author

@weiwangncar weiwangncar commented Apr 26, 2021

@dudhia This PR is just code clean up, and it is not related to any restart problem, or correction of the restart problem.

@dudhia
Copy link
Collaborator

@dudhia dudhia commented Apr 26, 2021

@weiwangncar
Copy link
Collaborator Author

@weiwangncar weiwangncar commented Apr 26, 2021

@dudhia The namelist was introduced back in 3.7 to fix the restart problem we saw then. But it does not fix restart issue in the current code anymore.

@weiwangncar
Copy link
Collaborator Author

@weiwangncar weiwangncar commented Apr 26, 2021

@dudhia When we added the calls to spec_bdy_final in 3.7, we noticed nest restart problem. It was identified then that this particular call was the problem. So we added this namelist to not call this routine for MU so that nest could produce bit-for-bit restart. I don't know what smooth_option we were using at the time to test nest restart.

@weiwangncar
Copy link
Collaborator Author

@weiwangncar weiwangncar commented Apr 26, 2021

@dudhia Just tested: setting spec_bdy_final_mu = 0 does not help with restart issue associated with smooth_option = 2.

@weiwangncar
Copy link
Collaborator Author

@weiwangncar weiwangncar commented Apr 28, 2021

@dudhia Are you ok with this PR now?

dudhia
dudhia approved these changes Apr 28, 2021
Copy link
Collaborator

@dudhia dudhia left a comment

Looks fine

@weiwangncar weiwangncar merged commit 98a7446 into wrf-model:release-v4.3 Apr 28, 2021
9 checks passed
@weiwangncar weiwangncar deleted the rm-bdy_final_mu branch Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants