Skip to content

Commit

Permalink
Remove internal calls to Gridap
Browse files Browse the repository at this point in the history
  • Loading branch information
hammy4815 authored Jul 15, 2023
1 parent 5e238b0 commit e9303fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/CellData/DomainContributions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -188,22 +188,22 @@ function integrate(f,b::CompositeMeasure)
return cont
end

function get_cell_weights(dΩ::Gridap.CellData.Measure)
function get_cell_weights(dΩ::Measure)
get_cell_weights(dΩ.quad)
end

function get_cell_weights(quad::Gridap.CellData.CellQuadrature)
function get_cell_weights(quad::CellQuadrature)
if quad.data_domain_style == PhysicalDomain() && quad.integration_domain_style == PhysicalDomain()
quad.cell_weight
elseif quad.data_domain_style == ReferenceDomain() && quad.integration_domain_style == PhysicalDomain()
cell_map = get_cell_map(quad.trian)
cell_Jt = lazy_map(∇,cell_map)
cell_Jtx = lazy_map(evaluate,cell_Jt,quad.cell_point)
cell_m = lazy_map(Broadcasting(Gridap.TensorValues.meas),cell_Jtx)
cell_m = lazy_map(Broadcasting(meas),cell_Jtx)
lazy_map(Broadcasting(*),quad.cell_weight,cell_m)
elseif quad.data_domain_style == ReferenceDomain() && quad.integration_domain_style == ReferenceDomain()
quad.cell_weight
else
Gridap.Helpers.@notimplemented
@notimplemented
end
end

0 comments on commit e9303fc

Please sign in to comment.