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

CICE addition of fswthru by components. #479

Merged
merged 8 commits into from
Jul 9, 2020

Conversation

dabail10
Copy link
Contributor

@dabail10 dabail10 commented Jul 6, 2020

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:
    This completes the fswthru changes by component already added to icepack.
  • 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.
    https://github.com/CICE-Consortium/Test-Results/wiki/cice_by_mach_forks#cheyenne
  • 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:

@dabail10 dabail10 requested review from apcraig and duvivier July 6, 2020 19:37
@@ -252,6 +252,10 @@ either Celsius or Kelvin units).
"fswint", "shortwave absorbed in ice interior", "W/m\ :math:`^2`"
"fswpenl", "shortwave penetrating through ice layers", "W/m\ :math:`^2`"
"fswthru", "shortwave penetrating to ocean", "W/m\ :math:`^2`"
"fswthru_vdr", "vis dir shortwave penetrating to ocean", "W/m\ :math:`^2`"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think for these we should spell out these shortened versions just for clarity. I should also make sure this happens in the Icepack documentation.
vis dir = visible direct, vis dif = visible diffuse, etc. These are obvious to us, but I don't think they are necessarily obvious to others.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Part of the reason I used the abbreviations here is so that the table did not run over. Here is the icepack table:

https://cice-consortium-icepack.readthedocs.io/en/master/icepack_index.html

I can add the full names if people feel strongly about this.

Copy link
Contributor

Choose a reason for hiding this comment

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

The longer spelled out forcing would be more consistent with the albedo components and I think more clear:
alndf | albedo: near IR, diffuse 
alndr | albedo: near IR, direct 
alvdf | albedo: visible, diffuse
alvdr | albedo: visible, direct

If they run over it should just wrap (see dardg1(n)dt).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok. Made the suggested change to CICE. I have another Icepack PR coming in the next couple days where I will fix it there.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thumbs up

@dabail10
Copy link
Contributor Author

dabail10 commented Jul 8, 2020

Looks like this is ready to merge. I can do that I guess.

@dabail10
Copy link
Contributor Author

dabail10 commented Jul 9, 2020

Can I hit Squash and Merge?

@eclare108213 eclare108213 merged commit d6a1d80 into CICE-Consortium:master Jul 9, 2020
@phil-blain
Copy link
Member

Hi @dabail10 !

I'm working on compiling CICE within NEMO and noticed you made changes only to the standalone driver in this PR, and not to the other drivers... it's unclear to me if this is an oversight, or do we only update the standalone driver ? it's unclear to me if we have a Consortium policy about that... @apcraig

@apcraig
Copy link
Contributor

apcraig commented Sep 21, 2020

We do not have a clear policy. Looking back, the changes with this PR were in the standalone driver and the NUOPC/CMEPS cap. It also looks like these new options were not added as optional arguments, so that means the other caps will break. I think we do need to be aware of this issue. I generally try to change all the caps when I'm bringing a change into one. But we have not asked that generally. The problem is that it's not possible to test all of them either.

I think we should create a policy where if an interface changes that affects caps, it should be updated in all caps. In this case, it would have been easy and relatively safe to do even without testing. There may be cases where it's not so easy, but we should all try to do that.

I can try to create a PR where I update the other caps consistent with this PR. Or @phil-blain, if you are working on it for your cap, maybe you could also include updates to other caps at the same time?

@dabail10
Copy link
Contributor Author

I thought I did make these optional in the interfaces? I have to go back. However, as Tony says, I can't really test all the caps. I did the standalone driver and the CESM/NUOPC cap.

@phil-blain
Copy link
Member

My changes won't be ready for a PR anytime soon, so feel free to do it Tony.

@apcraig
Copy link
Contributor

apcraig commented Sep 21, 2020

@dabail10, I think the optional part was in the icepack interfaces, not in the interfaces used in the driver/caps. So we probably just need to add the 4 extra arguments to all calls of scale_fluxes. @phil-blain, I'll try to create a PR this week.

@dabail10 dabail10 deleted the fswthru branch March 24, 2021 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants