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

Use of similar in conditional_operations.jl #2942

Closed
navidcy opened this issue Feb 22, 2023 · 3 comments
Closed

Use of similar in conditional_operations.jl #2942

navidcy opened this issue Feb 22, 2023 · 3 comments
Labels
question 💭 No such thing as a stupid question

Comments

@navidcy
Copy link
Collaborator

navidcy commented Feb 22, 2023

The use of similar here drops the boundary conditions associated with c.operand. Is this dangerous?

function concretize_condition(c::ConditionalOperation)
f = similar(c.operand)
set!(f, c)
return f
end

I couldn't see any use of concretize_condition() anywhere though...

@navidcy navidcy added the question 💭 No such thing as a stupid question label Feb 22, 2023
@glwagner
Copy link
Member

is concretize the same as regularize and materialize? We probably should use just one word for that idea...

@glwagner
Copy link
Member

I don't think it's dangerous because as mentioned elsewhere boundary conditions are in general only meaningful in the context of prognostic time-stepping of a model...

@navidcy
Copy link
Collaborator Author

navidcy commented Feb 24, 2023

OK, I'm closing this. Thanks!

@navidcy navidcy closed this as completed Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question 💭 No such thing as a stupid question
Projects
None yet
Development

No branches or pull requests

2 participants