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 compressing TrilinosWrappers::SparsityPattern with empty column map #8277
Fix compressing TrilinosWrappers::SparsityPattern with empty column map #8277
Conversation
/rebuild |
@@ -791,7 +791,8 @@ namespace TrilinosWrappers | |||
if (nonlocal_graph.get() != nullptr) | |||
{ | |||
if (nonlocal_graph->IndicesAreGlobal() == false && | |||
nonlocal_graph->RowMap().NumMyElements() > 0) | |||
nonlocal_graph->RowMap().NumMyElements() > 0 && | |||
column_space_map->NumMyElements() > 0) |
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.
Don't you want to check for column_space_map->NumGlobalElements() > 0
? We have a switch for an empty column space map on the local process in line 811 below. See also #7833.
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.
I changed that.
3da8c3b
to
a888d8c
Compare
a888d8c
to
c5ff9b4
Compare
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!
Fixes the problem in https://groups.google.com/forum/#!topic/dealii/Pb4xy7qcNW0
causes problems if we try to insert an entry that it is not contained in the row and column maps.
If the column map is empty, we consequently can't insert any dummy element at all.