Relocate derived bucket assignment to conventional location #944
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TYPE: bug fix
KEYWORDS: bucket
SOURCE: Chang Hai Liu (NCAR/RAL), internal
DESCRIPTION OF CHANGES:
Problem:
This modification includes two types of changes dealing with the buckets used for longer-term
simulations. The purpose of these buckets is to allow for an accurate accumulation of small values
over seasonal or regional climate time scales. These capabilities are both driven by derived namelist
options. Once a user defines a bucket size > 0, then the option is automatically activated.
Solution:
dyn_em/namelist_remappings_em.h
,which is not conventional and certainly not easy to find. This assignment of this derived variable is
moved into
module_check_a_mundo.F
, where it belongs.energy bucket. If a user turned on the radiation bucket
bucket_J=1
, no additional output wasmanufactured. With this modification, as with the precip bucket in check_a_mundo, there is now an
assignment to the derived radiation / flux / energy bucket option.
LIST OF MODIFIED FILES:
modified: dyn_em/namelist_remappings_em.h
modified: share/module_check_a_mundo.F
TESTS CONDUCTED:
fields are never allocated.
since the only change for the rain bucket is the location of the assignment of the derived namelist
option (
module_check_a_mundo.F
vsnamelist_remappings_em.h
). This is a 12-h simulation ofthe Jan 2000 case.
the original code (no buckets) and the new code (able to use buckets). The difference fields reflect
the size of the bucket over two 6-h time periods. There are places with 0 difference (old vs new
code), and places with +- 10000 W/m^2 and +-20000 W/m^2. For selected points, the differences
between old code total ACLWDNB (left) and the new code bucketed ACLWDNB (middle), is
identically the bucket size * the number of buckets at that grid point.
RELEASE NOTE: Logic was added to include the buckets for accumulated radiation fields (i_acswupt, i_acswuptc, i_acswdnt, i_acswdntc, i_acswupb, i_acswupbc, i_acswdnb, i_acswdnbc, i_aclwupt, i_aclwuptc, i_aclwdnt, i_aclwdntc, i_aclwupb, i_aclwupbc, i_aclwdnb, i_aclwdnbc) when the user selects bucket_J > 0. Previously, when the user selected the bucket_J >0, no additional fields were computed or output.