-
Notifications
You must be signed in to change notification settings - Fork 7
FunctionalBlock #153
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
base: release
Are you sure you want to change the base?
FunctionalBlock #153
Conversation
rckirby
left a comment
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.
This is a great start. The main issue is whether this is just some "window dressing" or we want to go "block-forward" and refactor all the to_riesz business. We also need a way to store these blocks as such in the finite element so we can try to automate zany maps. By using extend on the list of nodes, I think we're losing that structure?
FIAT/functional.py
Outdated
| nodes = [block.nodes[index]] | ||
| super().__init__(nodes) | ||
|
|
||
| def completion(self): |
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.
Commentary: For later with zany map.
FIAT/functional.py
Outdated
| super().__init__(ref_el, x, 2) | ||
|
|
||
|
|
||
| class PointDirectionalDerivativeBlock(PointFunctionalBlock): |
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.
Can we generalize the "view" idea to capture that this is a linear combination of the pieces of the gradient?
| super().__init__(nodes) | ||
|
|
||
|
|
||
| class PointNormalTangentialDerivativeBlock(PointDirectionalDerivativeBlock): |
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.
More generally: Gradient block doesn't require a particular basis. Is this and the gradient instances of a common abstract gradient?
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 think the Cartesian case is special, since it is the only one we can use to enforce continuity of derivatives at a vertex
| super().__init__(ref_el, entity_dim, entity_id, Q_ref, Phis) | ||
|
|
||
|
|
||
| class FacetNormalIntegralMomentBlock(FacetDirectionalIntegralMomentBlock): |
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.
Somehow (later) there are pieces of this that want attention so we can automated H(div) zany things (MTW, AW)
FIAT/functional.py
Outdated
| def __init__(self, nodes): | ||
| self.nodes = nodes | ||
|
|
||
| def __iter__(self): |
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.
So this means when we extend a list of functionals with a block, that we just get back all of the functionals in the block.
d62ca0f to
ac856a0
Compare
Refactor Functional