-
Notifications
You must be signed in to change notification settings - Fork 160
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
Introduce new Constant #2927
Introduce new Constant #2927
Conversation
4527de5
to
11abb75
Compare
d83293a
to
73d7f51
Compare
7d76a71
to
17a81db
Compare
Co-authored-by: David A. Ham <david.ham@imperial.ac.uk>
1e75ce2
to
485af36
Compare
element = ufl.TensorElement("R", cell, 0, shape=shape) | ||
|
||
R = FunctionSpace(domain, element, name="firedrake.Constant") | ||
return Function(R, val=dat).assign(value) |
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.
Same question about value
.
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.
The assign needs to happen for annotation to occur. We can get away with not zeroing the dat
, but we need to assign to create an assign block.
Co-authored-by: Connor Ward <c.ward20@imperial.ac.uk>
Description
This PR is dependent on all of COFFEE being removed first.
Associated Pull Requests:
Fixes Issues:
Checklist for author:
make lint
in thefiredrake
source directory).make linkcheck; make html; make latexpdf
infiredrake/docs
directory)pytest tests
in thefiredrake
source directory) (useful, but not essential if you don't have suitable hardware).Checklist for reviewer: