From 8965fcfa094ce9dad48ee35c660262a5368e6842 Mon Sep 17 00:00:00 2001 From: JordiManyer Date: Tue, 1 Oct 2024 12:36:27 +1000 Subject: [PATCH] Ensure matrix gids are sorted --- src/Algebra.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Algebra.jl b/src/Algebra.jl index fd570a4..55999d0 100644 --- a/src/Algebra.jl +++ b/src/Algebra.jl @@ -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