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

Fix PETSc Laplace tests #1859

Merged
merged 3 commits into from
Dec 2, 2019
Merged

Fix PETSc Laplace tests #1859

merged 3 commits into from
Dec 2, 2019

Conversation

ZedThree
Copy link
Member

@ZedThree ZedThree commented Dec 2, 2019

Two issues:

  1. LaplacePetsc destructors getting called after PetscLib::cleanup due to new factories making unique_ptrs
  2. Removal of Laplace::setFlags caused the preconditioners to have the default flags set

`invert` is now `unique_ptr` which gets destroyed at end of
scope. Unfortunately, this is now after `BoutFinalise` which calls
`PetscLib::cleanup`
@ZedThree ZedThree added the bugfix label Dec 2, 2019
@ZedThree ZedThree added this to the BOUT-5.0 milestone Dec 2, 2019
bendudson
bendudson previously approved these changes Dec 2, 2019
@ZedThree ZedThree merged commit fe41bc5 into next Dec 2, 2019
@ZedThree ZedThree deleted the fix-petsc-laplace-tests branch December 2, 2019 15:12
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.

None yet

3 participants