-
Notifications
You must be signed in to change notification settings - Fork 201
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
(0.95.6) Correctly account for field names in ContinuousBoundaryFunctions
#4008
Open
simone-silvestri
wants to merge
29
commits into
main
Choose a base branch
from
ss/correct-continuous-boundary-functions
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+68
−42
Open
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
193efb7
add masking
simone-silvestri 1c20a5b
also xy fields
simone-silvestri d1b83b4
improvements
simone-silvestri ad802d9
add bump
simone-silvestri 7b7639d
Merge branch 'main' into ss/correct-continuous-boundary-functions
simone-silvestri 999b195
bump
simone-silvestri a861a37
comment
simone-silvestri 0e7dc4a
small correction
simone-silvestri 1d02b9b
couple of corrections
simone-silvestri d61187e
better comment
simone-silvestri 44fdd9f
correct model_fields
simone-silvestri 1b90451
using field names
simone-silvestri 13d6d57
bugfix
simone-silvestri fd90c83
validate closure
simone-silvestri 6ae4a6d
whoops not here
simone-silvestri 5a26ecf
not here
simone-silvestri 6f28d5f
add new design
simone-silvestri b591b45
add tests
simone-silvestri 6ab2279
correction
simone-silvestri 6861ae5
Merge branch 'main' into ss/correct-continuous-boundary-functions
simone-silvestri b511529
correct
simone-silvestri 39bcdca
some corrections
simone-silvestri c2da5ee
this should work now
simone-silvestri 19ad053
probably we need to inline
simone-silvestri f975fc0
bump
simone-silvestri d9c3177
Merge branch 'main' into ss/correct-continuous-boundary-functions
simone-silvestri 7644409
just do an issue
simone-silvestri 52c248a
Merge branch 'ss/correct-continuous-boundary-functions' of github.com…
simone-silvestri ddfdab0
Merge branch 'main' into ss/correct-continuous-boundary-functions
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
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
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.
I am a bit confused about this function. I think that the biogeochemical auxiliary fields have been added to the
auxiliary_fields
during model construction, so we shouldn't need an extrabiogeochemical_auxiliary_fields(model.biogeochemistry)
here right? @jagoosw is it 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.
no, the biogeochemistry struct is allowed to have extra auxiliary fields that are not attached to the model. Basically
model.auxiliary_fields
are purely for the user, whereasbiogeochemistry
can have its own auxiliary fields, much like the closure has auxiliary fields that are stored indiffusivity_fields
(which could be calledclosure_auxiliary_fields
).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.
Then I guess the implementation is bugged because It actually looks like the fields are added to the
auxiliary_fields
, and, thus they are accounted for twice in thefields
functionOceananigans.jl/src/Models/HydrostaticFreeSurfaceModels/hydrostatic_free_surface_model.jl
Lines 131 to 133 in d8273e7