forked from libMesh/libmesh
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added patch to petsc_matrix.C from Dmitry Karpeyev. This example now …
…works properly in parallel.
- Loading branch information
Showing
1 changed file
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
247cc12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Including stuff from
petsc-private
and tweaking a bunch of private member variables? Is this the best/only way to do this @karpeev? What versions of PETSc support this, etc?247cc12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@karpeev has added a new public function (called MatReset()) to petsc-dev, so that will resolve that issue once it's available. But it won't be available until the next PETSc release apparently.
247cc12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
247cc12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
247cc12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @karpeev for working on it.
I'm not sure exactly what to do about this PR... I don't really want to merge it as-is because I'm worried it will break somebody using an older version of PETSc with a slightly different matimpl.h. Maybe this is a non-issue, but there is the issue of knowing when it's safe to take the hack back out of libmesh, or should we just guard it with #ifdefs and keep it there forever?
@roystgnr any thoughts?
247cc12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
247cc12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But then this example would not run for anyone not using petsc-maint...
247cc12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.