@@ -62,7 +62,7 @@ function plot!(
6262 end
6363 if resultdim == 1
6464 if ! average_broken_plots && ExtendableFEMBase. broken (sol[op[1 ]]. FES)
65- broken_scalarplot! (p[row, col], sol[op[1 ]]; title = title * title_add, kwargs... )
65+ broken_scalarplot! (p[row, col], sol[op[1 ]], op[ 2 ] ; title = title * title_add, kwargs... )
6666 else
6767 GridVisualize. scalarplot! (p[row, col], sol[op[1 ]]. FES. dofgrid, view (nodevalues (sol[op[1 ]], op[2 ]; abs = false ), 1 , :), title = title * title_add; kwargs... )
6868 end
9090
9191
9292"""
93- broken_scalarplot!(vis, feVectorBlock; kwargs...)
93+ broken_scalarplot!(vis, feVectorBlock::FEVectorBlock, operator = Identity ; kwargs...)
9494
9595A "broken" scalarplot of a broken finite element vector.
9696Instead of averaging the discontinuous values on the grid nodes, each grid cell is plotted
9797independently. Thus, a discontinuous plot is generated.
9898
9999All kwargs of the calling method are transferred to the scalarplot in this method.
100100"""
101- function broken_scalarplot! (vis, feVectorBlock:: FEVectorBlock ; kwargs... )
101+ function broken_scalarplot! (vis, feVectorBlock:: FEVectorBlock , operator = Identity ; kwargs... )
102102
103103 dofgrid = feVectorBlock. FES. dofgrid
104104 cell_nodes = dofgrid[CellNodes]
105105 coords = dofgrid[Coordinates]
106106
107- all_values = nodevalues (feVectorBlock; cellwise = true ) # cellwise evaluation of the FE
107+ all_values = nodevalues (feVectorBlock, operator ; cellwise = true ) # cellwise evaluation of the FE
108108 all_coords = @views coords[:, cell_nodes[:]]
109109 all_cells = reshape (1 : length (all_values), size (all_values))
110110
0 commit comments