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

Rename IncompressibleModel to NonhydrostaticModel #1870

Merged
merged 16 commits into from
Jul 19, 2021

Conversation

navidcy
Copy link
Collaborator

@navidcy navidcy commented Jul 18, 2021

Closes #1620.

@navidcy navidcy requested a review from glwagner July 18, 2021 12:34
@navidcy
Copy link
Collaborator Author

navidcy commented Jul 18, 2021

This first commit is just a search-and-replace. Let's go through the changes to find any possible mishaps.

@navidcy
Copy link
Collaborator Author

navidcy commented Jul 18, 2021

We may need to rename some files, e.g., IncompressibleModels.jl, incompressible_model.jl...

@navidcy
Copy link
Collaborator Author

navidcy commented Jul 18, 2021

oh @glwagner, did you already did this in #1867?
If so then close this... :) (and link #1620 to #1867)

@glwagner
Copy link
Member

oh @glwagner, did you already did this in #1867?
If so then close this... :) (and link #1620 to #1867)

No, I didn't! #1867 is just an issue, not a PR. ?

@glwagner
Copy link
Member

We may need to rename some files, e.g., IncompressibleModels.jl, incompressible_model.jl...

Quite!

@navidcy
Copy link
Collaborator Author

navidcy commented Jul 18, 2021

oh @glwagner, did you already did this in #1867?
If so then close this... :) (and link #1620 to #1867)

No, I didn't! #1867 is just an issue, not a PR. ?

I simply got confused... :)

@glwagner
Copy link
Member

So good

Copy link
Member

@glwagner glwagner left a comment

Choose a reason for hiding this comment

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

It's... breathtaking...

@navidcy
Copy link
Collaborator Author

navidcy commented Jul 18, 2021

It's... breathtaking...

Keep calm

@navidcy navidcy requested a review from tomchor July 18, 2021 23:21
@tomchor
Copy link
Collaborator

tomchor commented Jul 18, 2021

Docs are here BTW: https://clima.github.io/OceananigansDocumentation/previews/PR1870/

Might be good to search for "Incompressible model" (separate words) to catch instances like the title of this page: https://clima.github.io/OceananigansDocumentation/previews/PR1870/physics/nonhydrostatic_model/

@tomchor
Copy link
Collaborator

tomchor commented Jul 19, 2021

This is what I found:

(base) tomas@np900:~/repos/Oceananigans.jl$ grep -ri "incompressible model" *
benchmark/benchmark_incompressible_model.jl:          xlabel="Nx", ylabel="Times (ms)", title="Incompressible Model Benchmarks: CPU vs GPU")
benchmark/benchmark_incompressible_model.jl:            xlabel="Nx", ylabel="Speedup Ratio", title="Incompressible Model Benchmarks: CPU/GPU")
benchmark/benchmark_incompressible_model.jl:benchmarks_pretty_table(df, title="Incompressible model benchmarks")
benchmark/benchmark_incompressible_model.jl:    benchmarks_pretty_table(df_Δ, title="Incompressible model CPU to GPU speedup")
benchmark/strong_scaling_incompressible_model.jl:    @info "Benchmarking distributed incompressible model strong scaling with $(typeof(decomposition)) decomposition [N=($Nx, $Ny, $Nz), ranks=($Rx, $Ry, $Rz)]..."
benchmark/strong_scaling_incompressible_model.jl:benchmarks_pretty_table(df, title="Incompressible model strong scaling benchmark")
benchmark/strong_scaling_incompressible_model.jl:benchmarks_pretty_table(df_Δ, title="Incompressible model strong scaling speedup")
benchmark/README.md:Running the `benchmark_regression.jl` script will run the incompressible model tests on the current branch and on the master branch for comparison. This is useful to test whether the current branch slows down the code or introduces any performance regression.
benchmark/benchmark_vertically_stretched_incompressible_model.jl:benchmarks_pretty_table(df, title="Vertically-stretched incompressible model benchmarks")
benchmark/benchmark_vertically_stretched_incompressible_model.jl:    benchmarks_pretty_table(df_Δ, title="Vertically-stretched incompressible model CPU to GPU speedup")
benchmark/strong_scaling_incompressible_model_single.jl:@info "Setting up distributed incompressible model with N=($Nx, $Ny, $Nz) grid points and ranks=($Rx, $Ry, $Rz) ($decomposition decomposition) on rank $local_rank..."
benchmark/strong_scaling_incompressible_model_single.jl:@info "Warming up distributed incompressible model on rank $local_rank..."
benchmark/strong_scaling_incompressible_model_single.jl:@info "Benchmarking distributed incompressible model on rank $local_rank..."
docs/src/physics/incompressible_model.md:# Incompressible model
docs/src/numerical_implementation/time_stepping.md:where, e.g., for the incompressible model, 
docs/make.jl:        "Incompressible model" => "physics/incompressible_model.md",
src/Distributed/distributed_incompressible_model.jl:##### Distributed incompressible model constructor
validation/immersed_boundaries/flow_around_cylinder.jl:# setting up incompressible model with immersed boundary

If you're okay with it I can make these alterations myself (idk what are the protocols about modifying other people's PRs...)

@navidcy
Copy link
Collaborator Author

navidcy commented Jul 19, 2021

This is what I found:

(base) tomas@np900:~/repos/Oceananigans.jl$ grep -ri "incompressible model" *
benchmark/benchmark_incompressible_model.jl:          xlabel="Nx", ylabel="Times (ms)", title="Incompressible Model Benchmarks: CPU vs GPU")
benchmark/benchmark_incompressible_model.jl:            xlabel="Nx", ylabel="Speedup Ratio", title="Incompressible Model Benchmarks: CPU/GPU")
benchmark/benchmark_incompressible_model.jl:benchmarks_pretty_table(df, title="Incompressible model benchmarks")
benchmark/benchmark_incompressible_model.jl:    benchmarks_pretty_table(df_Δ, title="Incompressible model CPU to GPU speedup")
benchmark/strong_scaling_incompressible_model.jl:    @info "Benchmarking distributed incompressible model strong scaling with $(typeof(decomposition)) decomposition [N=($Nx, $Ny, $Nz), ranks=($Rx, $Ry, $Rz)]..."
benchmark/strong_scaling_incompressible_model.jl:benchmarks_pretty_table(df, title="Incompressible model strong scaling benchmark")
benchmark/strong_scaling_incompressible_model.jl:benchmarks_pretty_table(df_Δ, title="Incompressible model strong scaling speedup")
benchmark/README.md:Running the `benchmark_regression.jl` script will run the incompressible model tests on the current branch and on the master branch for comparison. This is useful to test whether the current branch slows down the code or introduces any performance regression.
benchmark/benchmark_vertically_stretched_incompressible_model.jl:benchmarks_pretty_table(df, title="Vertically-stretched incompressible model benchmarks")
benchmark/benchmark_vertically_stretched_incompressible_model.jl:    benchmarks_pretty_table(df_Δ, title="Vertically-stretched incompressible model CPU to GPU speedup")
benchmark/strong_scaling_incompressible_model_single.jl:@info "Setting up distributed incompressible model with N=($Nx, $Ny, $Nz) grid points and ranks=($Rx, $Ry, $Rz) ($decomposition decomposition) on rank $local_rank..."
benchmark/strong_scaling_incompressible_model_single.jl:@info "Warming up distributed incompressible model on rank $local_rank..."
benchmark/strong_scaling_incompressible_model_single.jl:@info "Benchmarking distributed incompressible model on rank $local_rank..."
docs/src/physics/incompressible_model.md:# Incompressible model
docs/src/numerical_implementation/time_stepping.md:where, e.g., for the incompressible model, 
docs/make.jl:        "Incompressible model" => "physics/incompressible_model.md",
src/Distributed/distributed_incompressible_model.jl:##### Distributed incompressible model constructor
validation/immersed_boundaries/flow_around_cylinder.jl:# setting up incompressible model with immersed boundary

If you're okay with it I can make these alterations myself (idk what are the protocols about modifying other people's PRs...)

Thanks that's helpful!
Hm... Are you sure you are looking at the latest version? Because some of those incompressible things I've changed already!

…b.com:CliMA/Oceananigans.jl into ncc-glw/incompressible-becomes-nonhydrostatic
@navidcy
Copy link
Collaborator Author

navidcy commented Jul 19, 2021

but, @tomchor, I'd be definitely more than happy if you'd made these changes since they are trivial and need not be discussed or what not ;)

(just saying in response to your protocol concerns..!)

thanks for reviewing!

@navidcy navidcy merged commit 472bdca into master Jul 19, 2021
@navidcy navidcy deleted the ncc-glw/incompressible-becomes-nonhydrostatic branch July 19, 2021 03:37
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.

Boussinesq model vs incompressible model
3 participants