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

Support Field(loc, op) for specifying AbstractOperation location #2270

Closed
glwagner opened this issue Feb 22, 2022 · 2 comments
Closed

Support Field(loc, op) for specifying AbstractOperation location #2270

glwagner opened this issue Feb 22, 2022 · 2 comments

Comments

@glwagner
Copy link
Member

glwagner commented Feb 22, 2022

This would provide an alternative to @at loc abstract_op for specifying the final location of an AbstractOperation. We can also support Field(loc, r::Reduction).

cc @navidcy

@glwagner glwagner changed the title Support Field(loc, abstract_op) and Field(loc, Reduction(u; dims)) Support Field(loc, op) for specifying AbstractOperation location Feb 22, 2022
@glwagner
Copy link
Member Author

glwagner commented Feb 22, 2022

#2246 renders this less useful but I think it's still worthwhile.

Related is supporting something like

uu = @at (Center, Center, Center) Average(u * u, dims=1)

for specifying the location of a reduction. I think this will work if the reductions support Reduction(loc, field).

@glwagner
Copy link
Member Author

I'm closing this issue because I'm judging that it's not of current, timely relevance to Oceananigans development. If you would like to make it a higher priority or if you think the issue was closed in error please feel free to re-open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant