From 3f028a34b304188d61883938446b5bdc4aa2692b Mon Sep 17 00:00:00 2001 From: JordiManyer Date: Wed, 18 Oct 2023 12:15:45 +1100 Subject: [PATCH 1/2] Added mwe --- test/bug_mwe.jl | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/bug_mwe.jl diff --git a/test/bug_mwe.jl b/test/bug_mwe.jl new file mode 100644 index 0000000..3f65e2c --- /dev/null +++ b/test/bug_mwe.jl @@ -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 From bf3d310c4a56a70f05884b4181b2394e7c28555b Mon Sep 17 00:00:00 2001 From: JordiManyer Date: Wed, 18 Oct 2023 12:29:35 +1100 Subject: [PATCH 2/2] Minor --- test/bug_mwe.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/bug_mwe.jl b/test/bug_mwe.jl index 3f65e2c..2598048 100644 --- a/test/bug_mwe.jl +++ b/test/bug_mwe.jl @@ -8,7 +8,7 @@ parts = with_mpi() do distribute end cmodel = CartesianDiscreteModel((0,1,0,1),(1,1)) -model = OctreeDistributedDiscreteModel(parts,cmodel,4) +model = OctreeDistributedDiscreteModel(parts,cmodel,2) reffe = ReferenceFE(raviart_thomas,Float64,1) Vh = FESpace(model,reffe;dirichlet_tags="boundary") # Fails