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

discretization: add some fast paths for constant polynomials #363

Merged
merged 2 commits into from
Nov 18, 2022

Conversation

andrea-iob
Copy link
Member

It is possible to optimize the evaluation of constant polynomials taking advantage of the fact that basis value is 1 and basis derivative is 0.

This kind of optimization was already done for the evaluation of the polynomial value and gradient. Let's extend it also for the update of the polynomials and for the evaluation of the weights.

@andrea-iob andrea-iob force-pushed the discretization.optimize.first.degree branch from d08d0bb to 43df1a8 Compare November 16, 2022 10:27
Copy link
Contributor

@lucask81 lucask81 left a comment

Choose a reason for hiding this comment

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

I tested by running the immerflow test and the unstructured turbulent flat plate in order to check the results.

@andrea-iob andrea-iob merged commit a8b087b into master Nov 18, 2022
@andrea-iob andrea-iob deleted the discretization.optimize.first.degree branch November 18, 2022 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants