Skip to content

Commit f25ae7c

Browse files
committed
Bufix in AMR tutorial
1 parent dd9eae3 commit f25ae7c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/poisson_amr.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ function LShapedModel(n)
7979
cell_coords = map(mean,get_cell_coordinates(model))
8080
l_shape_filter(x) = (x[1] < 0.5) || (x[2] < 0.5)
8181
mask = map(l_shape_filter,cell_coords)
82-
return simplexify(DiscreteModelPortion(model,mask))
82+
model = simplexify(DiscreteModelPortion(model,mask))
83+
84+
grid = get_grid(model)
85+
topo = get_grid_topology(model)
86+
return UnstructuredDiscreteModel(grid, topo, FaceLabeling(topo))
8387
end
8488

8589
# Define the L2 norm for error estimation.

0 commit comments

Comments
 (0)