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

CD grid variables. #2

Merged
merged 1 commit into from
Nov 15, 2021
Merged

CD grid variables. #2

merged 1 commit into from
Nov 15, 2021

Conversation

dabail10
Copy link
Collaborator

For detailed information about submitting Pull Requests (PRs) to the CICE-Consortium,
please refer to: https://github.com/CICE-Consortium/About-Us/wiki/Resource-Index#information-for-developers

PR checklist

  • Short (1 sentence) summary of your PR:
    Additional CD grid variables.
  • Developer(s):
    dabail10 (D. Bailey)
  • Suggest PR reviewers from list in the column to the right.
  • Please copy the PR test results link or provide a summary of testing completed below.
    Later
  • How much do the PR code changes differ from the unmodified code?
    • bit for bit
    • different at roundoff level
    • more substantial
  • Does this PR create or have dependencies on Icepack or any other models?
    • Yes
    • No
  • Does this PR add any new test cases?
    • Yes
    • No
  • Is the documentation being updated? ("Documentation" includes information on the wiki or in the .rst files from doc/source/, which are used to create the online technical docs at https://readthedocs.org/projects/cice-consortium-cice/. A test build of the technical docs will be performed as part of the PR testing.)
    • Yes
    • No, does the documentation need to be updated at a later time?
      • Yes
      • No
  • Please provide any additional information or relevant details below:
    These are needed internally and for history.

if (grid_system == 'CD') then
call define_hist_field(n_uvele,"uvele","m/s",estr2D, ecstr, &
call define_hist_field(n_uvele,"uvele","m/s",estr2D, ecstr, &
Copy link
Collaborator

Choose a reason for hiding this comment

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

So we are defining the new fields unconditionnally, irrespective of grid_system. I guess that's because the field definition themselves do not take that much memory, so we don't care ?

Copy link
Owner

Choose a reason for hiding this comment

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

The new fields should only be allocated with grid_system == 'CD'. There is some logic in the history mechanism that prevents fields from being accumulated and/or written unless the f_ flag is true. And these extra variables with be set to false unless grid_system='CD'. So it's sort of hidden.

@apcraig apcraig merged commit bfdef30 into apcraig:cgridDEV Nov 15, 2021
@dabail10 dabail10 deleted the cgridDEV_hist branch November 15, 2021 21:27
apcraig pushed a commit that referenced this pull request May 10, 2024
Add standalone build config for gadi supercomputer

---------

Co-authored-by: Anton Steketee <anton-seaice@noreply.users.github.org>
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.

3 participants