Replies: 3 comments 1 reply
-
|
Have you started thinking of vector quantities?
|
Beta Was this translation helpful? Give feedback.
-
|
Note to self: Scalars should either have no domain or some special domain value which signifies it can be combined with anything. |
Beta Was this translation helpful? Give feedback.
-
|
The design is getting clearer to me now. Though the motivation in the original post was for operators to have a domain for certain checks that are needed in #1497, we can do better: With a clean implementation, it should not take much code to check the validity of an Ad operation at the time of construction - right now, we often get a cryptic error message at the time of parsing instead. The envisioned implementation steps are as follows:
Thoughts on testing:
What can fail/assumptions:
Future extensions:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In connection with work on #1497, I need to make decisions based on the domains of Ad operators, that is, the subdomains, interface grids, or boundary grids on which they are defined. I can give details if someone is curious, but it is not important in this context. Though I can hack my way through the issues I am facing, it is more natural to require that all operators have a domain.
To be clear, I am only considering domains in the form of subdomains and interfaces, and not the finer grained view of, say, operators defined on cells or faces on a grid. We may want to consider that as well (I have a half-baked idea in mind, also motivated by faster Ad parsing), but that will have to come later.
What can be gained:
What concerns me:
Technical details I have hammered out so far:
Does anyone have thoughts or suggestions?
Beta Was this translation helpful? Give feedback.
All reactions