-
Notifications
You must be signed in to change notification settings - Fork 191
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
Split-Explicit free-surface solver interface revisit #3311
Closed
Closed
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
afb4661
bit of cleanup
navidcy ee393b4
Merge branch 'main' into ncc-glw-ss/split-explicit-interface
navidcy c876dff
Merge branch 'main' into ncc-glw-ss/split-explicit-interface
navidcy 44e10c0
use grid as arg in FixedTimeStepSize constructor
navidcy e545fe5
code alignment
navidcy 3e30dd8
remove stray s
navidcy cd11a69
fix show method for SplitExplicitFreeSurface
navidcy edca7a6
fix typos
navidcy 2faa01f
beautifications
navidcy aa2c8cd
simplify
navidcy b7ef2c4
remove stray spaces
navidcy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@simone-silvestri is this the proper way to compute the spacing for the CFL?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should make this a small function on its own since users might wanna use this in their scripts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the function should handle
Flat
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minimum_xspacing
should handleFlat
. You shouldn't need to check manually.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm. I think we stumbled on this before. What’s the miminum xspacing for Flat x? 0 I presume.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this use case illustrates it perfectly. The neutral value for a minimum calculation is
Inf
(everything is less thanInf
).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At the moment, for Flat dimensions the spacings have the value f 1 in the grids:
Oceananigans.jl/src/Grids/grid_generation.jl
Lines 124 to 126 in 1c2a6f8
Then, when
x/y/zminimum_spacing
is called for those Flat dimension the 1 is returned...We should really have 0 or Inf as the spacing for Flat dimensions, right?