Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Fixed
- fixed type issues in LinearOperator and ItemIntegrator
- fixed region awareness and output array sizing for boundary entities in ItemIntegratorDG

## v1.7.0

Expand Down
10 changes: 8 additions & 2 deletions src/common_operators/item_integrator_dg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,12 @@ function build_assembler!(O::ItemIntegratorDG{Tv}, FE_args::Array{<:FEVectorBloc
end
end

if itemregions[item] > 0
if !(visit_region[itemregions[item]])
continue
end
end

for qp in 1:nweights
## evaluate arguments at quadrature points
fill!(input_args, 0)
Expand Down Expand Up @@ -364,9 +370,9 @@ function evaluate(O::ItemIntegratorDG{Tv, UT}, sol; kwargs...) where {Tv, UT}
elseif AT <: ON_EDGES
nitems = size(grid[EdgeNodes], 2)
elseif AT <: ON_BFACES
nitems = size(grid[BFaceNodes], 2)
nitems = size(grid[FaceNodes], 2)
elseif AT <: ON_BEDGES
nitems = size(grid[BEdgeNodes], 2)
nitems = size(grid[EdgeNodes], 2)
end
if O.parameters[:piecewise]
b = zeros(eltype(sol[1].entries), O.parameters[:resultdim], nitems)
Expand Down
Loading