Skip to content

[operators.cg] fix first order integration#431

Merged
sdrave merged 2 commits into
pymor:masterfrom
andreasbuhr:fix_1d_1storder_integration
Apr 11, 2018
Merged

[operators.cg] fix first order integration#431
sdrave merged 2 commits into
pymor:masterfrom
andreasbuhr:fix_1d_1storder_integration

Conversation

@andreasbuhr

Copy link
Copy Markdown
Contributor

1st order integration for boundary integrals in operators.cg was broken.

All dimensions of size 1 of the array of shape functions, evaluated at integration points, were removed using "np.squeeze". This works fine as long as there is more than one integration point. When you integrate first order, there is only one integration point and the dimension for the integration point number is removed from the array.
Then "np.einsum" failed because it expected to have a dimension for the integration point number.

@sdrave sdrave merged commit 3fffaf0 into pymor:master Apr 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants