Skip to content

Conversation

@glwagner
Copy link
Member

@glwagner glwagner commented Sep 3, 2025

Resolves #4759

"""
function FieldBoundaryConditions(grid::AbstractGrid, loc, indices=(:, :, :);
function FieldBoundaryConditions(grid::AbstractGrid, loc::Tuple, indices=(:, :, :);
west = default_auxiliary_bc(grid, Val(:west), loc),
Copy link
Collaborator

Choose a reason for hiding this comment

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

We could also just always instantiate the location, so that the constructors would work with both instantiated and non-instantiated locations.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it may be a better/simpler design to require instantiation. I don't think it is inconvenient practically and simplifies using/reading code.

end

FieldBoundaryConditions(mrg::MultiRegionGrids, loc, indices; kwargs...) =
FieldBoundaryConditions(mrg::MultiRegionGrids, loc::Tuple, indices::MultiRegionObject; kwargs...) =
Copy link
Member Author

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 issue?

Copy link
Collaborator

Choose a reason for hiding this comment

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

oh, I guess we are missing an import Oceananigans.BoundaryConditions: FieldBoundaryConditions?

Copy link
Member Author

Choose a reason for hiding this comment

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

that was definitely missing (otherwise this method doesn't extend anything) but also that didn't fix it hmm

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.

no method matching default_prognostic_bc error when building FieldBoundaryConditions

4 participants