We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd9eae3 commit f25ae7cCopy full SHA for f25ae7c
src/poisson_amr.jl
@@ -79,7 +79,11 @@ function LShapedModel(n)
79
cell_coords = map(mean,get_cell_coordinates(model))
80
l_shape_filter(x) = (x[1] < 0.5) || (x[2] < 0.5)
81
mask = map(l_shape_filter,cell_coords)
82
- return simplexify(DiscreteModelPortion(model,mask))
+ model = simplexify(DiscreteModelPortion(model,mask))
83
+
84
+ grid = get_grid(model)
85
+ topo = get_grid_topology(model)
86
+ return UnstructuredDiscreteModel(grid, topo, FaceLabeling(topo))
87
end
88
89
# Define the L2 norm for error estimation.
0 commit comments