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

Wire up Q/DQ elements in the FInAT interface #71

Closed
wants to merge 5 commits into from

Conversation

miklos1
Copy link
Member

@miklos1 miklos1 commented Oct 21, 2016

@@ -195,7 +190,7 @@ def statement_evaluate(leaf, parameters):
table[abs(table + 1.0) < epsilon] = -1.0
table[abs(table - 0.5) < epsilon] = 0.5
table[abs(table + 0.5) < epsilon] = -0.5
init = coffee.SparseArrayInit(table, parameters.precision, nz_bounds)
init = coffee.ArrayInit(table, parameters.precision)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We assume this basically doesn't matter because the big zero blocks are gone in this implementation anyway.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. No zero blocks from mixed or vector. There are still zeros if many basis functions are zero at the quadrature points, like here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually what I have on the link is something I might be able to optimise away.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, this has more compact tables, but code actually looks worse. I think it is better to just leave it like above for now.

for elem in element.sub_elements()])


quad_opc = ufl.TensorProductCell(ufl.Cell("interval"), ufl.Cell("interval"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you could take this opportunity to rename this variable as quad_tpc?

@miklos1
Copy link
Member Author

miklos1 commented Oct 24, 2016

Refactoring FInAT API before merging this...

@miklos1 miklos1 closed this Oct 24, 2016
@miklos1 miklos1 deleted the finat-tensor-product branch October 24, 2016 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants