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

LA: optimize system update #63

Merged
merged 1 commit into from
Jun 26, 2020
Merged

LA: optimize system update #63

merged 1 commit into from
Jun 26, 2020

Conversation

andrea-iob
Copy link
Member

System update can alter only the values of the matrix, not its pattern. Instead of coding our own check that enforces this condition, it is simpler and much cheaper to set the "MAT_NEW_NONZERO_LOCATIONS" PETSc option to false after the first matrix assembly. This ensures no new non-zero entries can be added during system updates.

This banche starts from "discretization.update.all", the commit that implements this optimization is the last one in the series.

@andrea-iob andrea-iob merged commit 5e17d69 into master Jun 26, 2020
@andrea-iob andrea-iob deleted the LA.optimize.system.update branch June 26, 2020 07:14
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