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

One degree simulation in the examples and correct documentation #276

Open
wants to merge 82 commits into
base: main
Choose a base branch
from

Conversation

simone-silvestri
Copy link
Collaborator

@simone-silvestri simone-silvestri commented Nov 22, 2024

A couple of bugs have been fixed. Now the one degree is stable. To be correct we need to implement a PolarBoundaryCondition for JRA55 fields and the input bathymetry since they span (-90, 90) on a latitude-longitude grid.

Also fixes a small bug where Time was not imported in PrescribedAtmospheres and brings the syntax of the other examples up to speed os that the docs run.

Copy link

codecov bot commented Nov 23, 2024

Codecov Report

Attention: Patch coverage is 0% with 16 lines in your changes missing coverage. Please review.

Project coverage is 0.00%. Comparing base (aa475d8) to head (1f0f98d).

Files with missing lines Patch % Lines
src/OceanSimulations/OceanSimulations.jl 0.00% 16 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##            main    #276   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files         34      34           
  Lines       1983    1998   +15     
=====================================
- Misses      1983    1998   +15     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@navidcy navidcy requested a review from glwagner November 24, 2024 19:58
@simone-silvestri
Copy link
Collaborator Author

simone-silvestri commented Nov 28, 2024

I think it would be nice as the objective of this PR to have a working one degree simulation in the examples (probably it will take a while)

@simone-silvestri simone-silvestri changed the title One degree simulation take 3 One degree simulation in the examples Nov 28, 2024
@navidcy
Copy link
Collaborator

navidcy commented Dec 2, 2024

Should we include it in the literated examples?

@simone-silvestri
Copy link
Collaborator Author

simone-silvestri commented Dec 3, 2024

Should we include it in the literated examples?

I think that would be very nice. There are probably a lot of users that want to run a coarser version of the global simulation. I think the roadmap to get this simulation working as an example is as follows:

  • PRs #3965 and #3960 in Oceananigans
  • PR #59 in OrthogonalSphericalShellGrids
  • A working version of Redi (should come in #3901 in Oceananigans)
  • advective GM (PR #3971 in Oceananigans)

We could start including the simulation in the examples with the current GM which should work in terms of results, but it is very slow (see issue #3938 in Oceananigans)

Then, once we have sea ice coupled we should update the example

@simone-silvestri simone-silvestri added the build docs Add this label to built the docs in a PR label Dec 15, 2024
@simone-silvestri
Copy link
Collaborator Author

Ready to merge I think

Comment on lines +201 to +205
Tn = @lift begin
Tn = interior(T[$n])
Tn[land] .= NaN
view(Tn, :, :, 1)
end
Copy link
Member

Choose a reason for hiding this comment

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

doesn't the plotting extension do this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

not for a tripolar grid

Copy link
Member

Choose a reason for hiding this comment

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

@simone-silvestri simone-silvestri changed the title One degree simulation in the examples One degree simulation in the examples and correct documentation Feb 21, 2025
Comment on lines 54 to 60
# - 30 minutes for a 1 degree ocean
# - 15 minutes for a 1/4 degree ocean
# - 7.5 minutes for a 1/8 degree ocean
# - 3.75 minutes for a 1/16 degree ocean
# - 1.875 minutes for a 1/32 degree ocean

return 40minutes / Δθ
return 30minutes / Δθ
Copy link
Member

Choose a reason for hiding this comment

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

aha. I thought it was 20 minutes in fact (do to Coriolis, but wasn't sure if you discovered something...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build docs Add this label to built the docs in a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants