Skip to content

Commit

Permalink
mistake of having Triangulation instead of View (was still working)
Browse files Browse the repository at this point in the history
  • Loading branch information
kishore-nori committed Oct 17, 2022
1 parent d3f26fb commit c5d38b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CellData/DiracDeltas.jl
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function DiracDelta(model::DiscreteModel{D}, pvec::Vector{Point{D,T}}) where {D,
points = map(i->pvec[cell_points[i]], 1:length(cell_ids))
weights_x_cell = collect.(Fill.(one(T),length.(cell_points)))
pquad = map(i -> GenericQuadrature(points[i],weights_x_cell[i]), 1:length(cell_ids))
trianv = Triangulation(trian,cell_ids)
trianv = TriangulationView(trian,cell_ids)
pmeas = Measure(CellQuadrature(pquad,points,weights_x_cell,trianv,PhysicalDomain(),PhysicalDomain()))
GenericDiracDelta{0,D,NotGridEntity}(trianv,pmeas)
end
Expand Down

0 comments on commit c5d38b1

Please sign in to comment.