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

fixes an issue in aux data streams #193

Merged
merged 4 commits into from
Nov 10, 2022

Conversation

jedwards4b
Copy link
Contributor

Description of changes

The calculation of ddateLB seems to be different in different parts of the file, at line 965 we have
yy = yy + (mYear-dYear-nYears) while at line 1154 we had
yy = yy + (mYear-dYear) changing the line at 1154 to match that at 965 seems to have solved the issue.

Specific notes

Contributors other than yourself, if any:

CDEPS Issues Fixed (include github issue #):

Are there dependencies on other component PRs (if so list):

Are changes expected to change answers (bfb, different to roundoff, more substantial):

Any User Interface Changes (namelist or namelist defaults changes):

Testing performed (e.g. aux_cdeps, CESM prealpha, etc):

Hashes used for testing:

@jedwards4b jedwards4b requested a review from mvertens November 2, 2022 20:12
@jedwards4b jedwards4b self-assigned this Nov 2, 2022
@jedwards4b
Copy link
Contributor Author

@fischer-ncar could you please run prealpha tests with this branch.

@fischer-ncar
Copy link
Collaborator

Can do.

@jedwards4b jedwards4b marked this pull request as draft November 4, 2022 20:21
@jedwards4b
Copy link
Contributor Author

I think that the issue here is that the cycle method in the model is only designed to cycle over full years of data and we are asking for a cycle over 2 days worth of data.

@mvertens
Copy link
Collaborator

mvertens commented Nov 7, 2022 via email

@jedwards4b
Copy link
Contributor Author

I guess I wasn't aware of that - I thought that we were trying to fix a bug in current functionality when in fact we want to add new functionality.

@mvertens
Copy link
Collaborator

mvertens commented Nov 7, 2022 via email

@jedwards4b
Copy link
Contributor Author

That change broke all of our existing tests - I spent some time this weekend trying to better understand this code and rewriting a lot of the date and time variables as ESMF derived types. I think I have a better handle on the problem now and should have a solution soon. I do have questions about what new functionality should be allowed - for example if we provide several days input data we want to cycle over those full days - what if only 6 hours of inputdata is provided? I assume we do not want to cycle over that and should generate an error since it would not have a diurnal cycle.

@jedwards4b
Copy link
Contributor Author

Now that I understand this to be new functionality and not a bug fix I have found a solution. For streams that do
not cycle over yearly boundaries the user may explicitly override the dt check by setting dtlimit=-1 for the stream.

I am not including this variable in the defaults, I think that in order to make sure that the user is aware that we are bypassing the limit they must set it explicitly for each stream file in user_nl_d*_streams

@jedwards4b
Copy link
Contributor Author

@fischer-ncar Could you please run prealphas with this branch?

@fischer-ncar
Copy link
Collaborator

prealpha testing looks goog.

@jedwards4b jedwards4b removed the request for review from mvertens November 9, 2022 17:49
Copy link
Collaborator

@uturuncoglu uturuncoglu left a comment

Choose a reason for hiding this comment

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

I also tested this under UFS by running couple of data atmosphere configurations and all worked fine.

@@ -779,7 +779,10 @@ subroutine datm_init_dfields(rc)
strm_flds2 = (/'Faxa_ndep_nhx', 'Faxa_ndep_noy'/)
call dshr_dfield_add(dfields, sdat, trim(lfieldnames(n)), strm_flds2, exportState, logunit, mainproc, rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return

case('cpl_scalars')
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this just required for data atmosphere? Do you need to same for other data components? Just curious.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for asking. The other components either use the explicit fieldname in the call or already skip the cpl_scalar fields.

@jedwards4b jedwards4b marked this pull request as ready for review November 10, 2022 00:05
@jedwards4b jedwards4b merged commit 3a5ef9e into ESCOMP:master Nov 10, 2022
@jedwards4b jedwards4b deleted the fix_auxstream_dataflow branch November 10, 2022 00:05
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