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

Misc refactoring #980

Merged
merged 1 commit into from
Oct 11, 2024
Merged

Misc refactoring #980

merged 1 commit into from
Oct 11, 2024

Conversation

charleskawczynski
Copy link
Member

This PR applies some miscellaneous refactoring:

  • use a concrete eltype in AtmosSim, this should improve inference in places
  • [FT(0)] -> FT[0] guarantees the vector eltype is of type FT, whereas the former pattern may not.
  • Call ones / zeros when working on scalar fields.
  • Add ; to separate positional and keyword arguments

Copy link
Member

@juliasloan25 juliasloan25 left a comment

Choose a reason for hiding this comment

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

Thanks for fixing these! After the T_sfc fix it looks good to me

experiments/ClimaEarth/components/ocean/slab_ocean.jl Outdated Show resolved Hide resolved
@juliasloan25 juliasloan25 force-pushed the ck/general_improvements branch 2 times, most recently from be328b0 to 41bd59b Compare October 11, 2024 01:24
@charleskawczynski
Copy link
Member Author

Thanks for fixing this up, @juliasloan25!

@charleskawczynski charleskawczynski merged commit 52ab0ef into main Oct 11, 2024
8 checks passed
@charleskawczynski charleskawczynski deleted the ck/general_improvements branch October 11, 2024 14:55
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