Skip to content

Commit

Permalink
Added mwe
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiManyer committed Oct 18, 2023
1 parent e456035 commit 3f028a3
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions test/bug_mwe.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

using Gridap, PartitionedArrays, GridapDistributed
using GridapP4est

np = 1
parts = with_mpi() do distribute
distribute(LinearIndices((prod(np),)))
end

cmodel = CartesianDiscreteModel((0,1,0,1),(1,1))
model = OctreeDistributedDiscreteModel(parts,cmodel,4)

reffe = ReferenceFE(raviart_thomas,Float64,1)
Vh = FESpace(model,reffe;dirichlet_tags="boundary") # Fails

cell_dof_ids = map(get_cell_dof_ids,local_views(Vh))

map(parts,local_views(Vh)) do p,Vh
dof_ids = get_cell_dof_ids(Vh)
sleep(p*3.0)
println(">>> Part ", p , ", ndofs=",num_free_dofs(Vh), ", type = ", typeof(Vh))
display(dof_ids)
end

0 comments on commit 3f028a3

Please sign in to comment.