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

Use correct ClimaCore types and operators for horizontal velocities #1173

Merged
merged 1 commit into from
Jun 15, 2022

Conversation

charleskawczynski
Copy link
Member

This PR

  • Uses the correct types for some variables, namely:
    • (ug, vu) -> uₕ_g
    • (sgs_flux_u,sgs_flux_v) -> sgs_flux_uₕ
    • (diffusive_flux_u,diffusive_flux_v) -> diffusive_flux_uₕ
  • Initializes and mutates them using the constructors that are compatible with the sphere

There are some places where we'll need to revisit so that we're also compatible with topography, but it's probably best that we revisit that when we have something to test.

driver/dycore.jl Outdated Show resolved Hide resolved
driver/dycore.jl Outdated Show resolved Hide resolved
src/EDMF_functions.jl Outdated Show resolved Hide resolved
src/update_aux.jl Outdated Show resolved Hide resolved
Use ClimaCore types session 2

Fix other cases

Try reversing coriolis sign

More fixes

More fixes

More fixes, and add set_z

Widen arg types

Fix LES_driven_SCM
@charleskawczynski
Copy link
Member Author

bors r+

@bors
Copy link
Contributor

bors bot commented Jun 15, 2022

Build succeeded:

@bors bors bot merged commit bedc019 into main Jun 15, 2022
@bors bors bot deleted the ck/cc_types2 branch June 15, 2022 21:25
bors bot added a commit that referenced this pull request Jun 15, 2022
1180: Fix subtype bug, remove unused method definition r=charleskawczynski a=charleskawczynski

This PR:

 - Removes an unused method, `set_z!`, which I forgot to remove in #1173.
 - Fixes a sub/super type bug: need to use `val isa AbstractString` in `print_repl_script`.

Co-authored-by: Charles Kawczynski <kawczynski.charles@gmail.com>
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.

2 participants