Skip to content

Commit

Permalink
Fixed distributed moment-fitted quads (maybe?)
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiManyer committed Nov 14, 2024
1 parent 1d82808 commit 946cdc1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Distributed/DistributedQuadratures.jl
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@

function CellData.Measure(
t::DistributedTriangulation,
trian::DistributedTriangulation,
quad::Tuple{MomentFitted,Vararg};
kwargs...)
@notimplemented
name, _args, _kwargs = quad
cut,cutfacets,_args... = _args
t = remove_ghost_cells(t)
measures = map(
local_views(t),
local_views(cut),
local_views(cutfacets)) do trian,cut,cutfacets
quad = name, (cut,cutfacets,_args...), _kwargs
Measure(trian,quad;kwargs...)

model = get_background_model(trian)
gids = get_cell_gids(model)
trian = remove_ghost_cells(trian,gids)
measures = map(local_views(trian),local_views(cut),local_views(cutfacets)) do trian,cut,cutfacets
quad = name, (cut,cutfacets,_args...), _kwargs
Measure(trian,quad;kwargs...)
end
DistributedMeasure(measures)
end

0 comments on commit 946cdc1

Please sign in to comment.