-
Notifications
You must be signed in to change notification settings - Fork 195
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
Adapt Field, AveragedField, and ComputedField for GPU, round 2 #1057
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
94dfc10
Adapt the world
glwagner ce0183a
Bugfix in time stepping kernels
glwagner f5733f3
Reorganizes TimeStepper module file
glwagner 6fd08a2
Update precomputations.jl
glwagner 192af89
Update pressure_correction.jl
glwagner 434294c
Merge branch 'master' into glw/adapt-field-round-2
glwagner 47483ea
Unrestrict closure operators
glwagner 18506ca
Better show and docs update for abstract operations
glwagner f4ee86a
Generalize dispatch on arrays to ArrayOrField or Any
glwagner 03f0c41
Computations are incorrect on boundaries of course
glwagner 047dcbc
Fixes up tests and elides GPU test
glwagner 7c6c844
Adds short_show methods for AveragedField and ComputedField
glwagner 23ae1db
Unary operations are a set not an array
glwagner cb190ed
Show for AveragedField and ComputedField
glwagner a64c32f
Better show for AveragedField and ComputedField
glwagner 331bbd3
Trees belong to AbstractOperations
glwagner d482b95
short_show for AbstractOperations
glwagner 402d3e5
Moar show for fields
glwagner eb0bfd2
Bugfix in short_show for BuoyancyField
glwagner f0f86fb
Try inbounds and inline rather than propagate-inbounds
glwagner e7892ac
Update calculate_tendencies.jl
glwagner 9ea60d2
Merge branch 'master' into glw/adapt-field-round-2
glwagner 974200a
Merge branch 'glw/adapt-field-round-2' of https://github.com/CliMA/Oc…
glwagner 3af5272
Merge branch 'master' into glw/adapt-field-round-2
glwagner c35af73
Merge branch 'master' into glw/adapt-field-round-2
glwagner 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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Just an idea: We can pretty print rational numbers that show up in abstract operations
but perhaps this is misleading as Julia is actually multiplying by
0.3333333333333333
and not1//3
.So probably the best thing to do is just print with
eltype(model)
.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.
Hmm we can also truncate floating point numbers to fewer significant digits by redefining
tree_show(a::Number, depth, nesting)
:Oceananigans.jl/src/AbstractOperations/show_abstract_operations.jl
Line 22 in b11f047