Skip to content

[WIP] Use fully distributed vector in line search#6939

Closed
gassmoeller wants to merge 1 commit intogeodynamics:mainfrom
gassmoeller:avoid_operating_on_ghosted_vectors
Closed

[WIP] Use fully distributed vector in line search#6939
gassmoeller wants to merge 1 commit intogeodynamics:mainfrom
gassmoeller:avoid_operating_on_ghosted_vectors

Conversation

@gassmoeller
Copy link
Copy Markdown
Member

Another follow-up PR to #6910.

Inside the perform_line_search function it looks like we no longer write into ghosted vectors, however the .sadd implementation for Tpetra vectors internally does, if the added vector is a ghosted vector. That is because sadd creates a copy of the added vector and then scales that copy. Therefore if the added vector is ghosted, the copy is ghosted, and modifying that copy is then not allowed.

This can (and should) be fixed in deal.II that is why I marked this as WIP here (I just want to document the problem and where it appears in ASPECT). When a proper patch is merged in deal.II this PR can be closed.

@gassmoeller
Copy link
Copy Markdown
Member Author

deal.II patch is merged. this can be closed.

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