Skip to content

Commit

Permalink
Ensure matrix gids are sorted
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiManyer committed Oct 1, 2024
1 parent 88a25ae commit 8965fcf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Algebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,9 @@ function _setup_prange_with_ghosts(dofs_gids_prange::PRange,gids,owners)
end
end
end
perm = sortperm(ghost_to_global)
permute!(ghost_to_global,perm)
permute!(ghost_to_owner,perm)
ghost_to_global, ghost_to_owner
end |> tuple_of_arrays

Expand Down

0 comments on commit 8965fcf

Please sign in to comment.