Skip to content

Commit

Permalink
Bugfix in local_views of a BlockPMatrix
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiManyer committed Oct 1, 2024
1 parent a3309ee commit 88a25ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Algebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ end

function local_views(a::BlockPMatrix,new_rows::BlockPRange,new_cols::BlockPRange)
vals = map(CartesianIndices(blocksize(a))) do I
local_views(blocks(a)[I],blocks(new_rows)[I],blocks(new_cols)[I])
local_views(blocks(a)[I],blocks(new_rows)[I[1]],blocks(new_cols)[I[2]])
end |> to_parray_of_arrays
return map(mortar,vals)
end
Expand Down
2 changes: 1 addition & 1 deletion src/Geometry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ end

function Geometry.Triangulation(
model::DistributedDiscreteModel;kwargs...)
D=num_cell_dims(model)
D = num_cell_dims(model)
Triangulation(no_ghost,ReferenceFE{D},model;kwargs...)
end

Expand Down

0 comments on commit 88a25ae

Please sign in to comment.