Skip to content

Commit

Permalink
Added a new element type to accepted Quadratures in CellPoint
Browse files Browse the repository at this point in the history
  • Loading branch information
amartinhuertas committed Dec 22, 2021
1 parent e44c3c5 commit 90713e1
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/CellData/CellQuadratures.jl
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@

# Quadrature rule

VectorBlock{<:AbstractArray{<:Point}}

const QET=Union{<:Quadrature,<:VectorBlock{<:Quadrature}}
const PET=Union{<:AbstractArray{<:Point},<:VectorBlock{<:AbstractArray{<:Point}}}
const WET=Union{<:AbstractArray{<:Real},<:VectorBlock{<:AbstractArray{<:Real}}}

"""
"""
struct CellQuadrature{DDS,IDS} <: CellDatum
cell_quad::AbstractArray{<:Quadrature}
cell_point::AbstractArray{<:AbstractArray{<:Point}}
cell_weight::AbstractArray{<:AbstractArray{<:Real}}
cell_quad::AbstractArray{<:QET}
cell_point::AbstractArray{<:PET}
cell_weight::AbstractArray{<:WET}
trian::Triangulation
data_domain_style::DDS
integration_domain_style::IDS
end

# Old constructor (for backward compatibility)
function CellQuadrature(
cell_quad::AbstractArray{<:Quadrature},
cell_point::AbstractArray{<:AbstractArray{<:Point}},
cell_weight::AbstractArray{<:AbstractArray{<:Real}},
cell_quad::AbstractArray{<:QET},
cell_point::AbstractArray{<:PET},
cell_weight::AbstractArray{<:WET},
trian::Triangulation,
data_domain_style::DomainStyle)
CellQuadrature(cell_quad,cell_point,cell_weight,trian,data_domain_style,PhysicalDomain())
Expand Down

0 comments on commit 90713e1

Please sign in to comment.