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

Improvements in petsc usage #379

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Improvements in petsc usage #379

wants to merge 9 commits into from

Conversation

enricofacca
Copy link
Collaborator

  • The formulation "flux_reduced" for the solution of linear systems in the wasserstein.py script is now covered with ksp solvers.

  • Tuning of hypre preconditioner is added for 3d case.

  • We can now pass extra ksp option using the dict. "petsc_options" in "linear_solver_options": .

  • Using petsc matrices and routined the assembly of the schur complement does not required to convert from scipy to petsc several time.

…ed (need for test_wasserstein), flux_reduced now covered by ksp. some tricks are added to avoid converting the matrices from scipy to petsc several time
…the matirx and rhs seperately. In this way we can avoid forming the schur complment. Removed the dependency of petsc in wasserstein
@enricofacca
Copy link
Collaborator Author

I included some functions to buffer the assembling phase of the schur complement for non PETSCs solvers.

@enricofacca
Copy link
Collaborator Author

Is it now possible to merge the code?

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.

1 participant