-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subdomain support for Interfaces + AllocCheck tests for iterators + Sparsitypattern bugfix #1108
Open
AbdAlazezAhmed
wants to merge
28
commits into
Ferrite-FEM:master
Choose a base branch
from
AbdAlazezAhmed:fix-interface-thing
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 27 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
64eab2d
homeoffice push
AbdAlazezAhmed 050f226
oopsie
AbdAlazezAhmed ec96036
use Set
AbdAlazezAhmed 6f4f040
now tests shall pass
AbdAlazezAhmed 932b366
runic
AbdAlazezAhmed b14251e
Init iterator with subdofhandlers
AbdAlazezAhmed 4659dba
oopsie
AbdAlazezAhmed 6044216
now sets are moved from there to here
AbdAlazezAhmed d0fc3b5
some tests
AbdAlazezAhmed 79d55f4
more tests
AbdAlazezAhmed 9b1cbdd
error paths + trying to test for allocs
AbdAlazezAhmed be27c62
Make Runic happy
AbdAlazezAhmed cf7c08e
make alloccheck happy
AbdAlazezAhmed 0b68251
revert oopsie
AbdAlazezAhmed 19f11ea
next: get rid of dynamic dispatches
AbdAlazezAhmed 84a1a14
home office push
AbdAlazezAhmed 261c50e
Bad workarounds, think about them tomorrow :P
AbdAlazezAhmed 4a22dea
add cell type to SubDofHandler as typeparameter
AbdAlazezAhmed cba4e1d
don't enoforce no-allocs for iterators using DofHandler
AbdAlazezAhmed 5c6495e
undo constrainthandler voodoo
AbdAlazezAhmed 8f281d7
tests for CellIterator
AbdAlazezAhmed 7b97fed
Construct FacetIterator without a set
AbdAlazezAhmed dcab007
Tests for FacetIterator
AbdAlazezAhmed a38ed02
Fix bug where boundary sets are broken for mixed grids
AbdAlazezAhmed 94948c2
move AllocCheck to test deps
AbdAlazezAhmed be9009a
please
AbdAlazezAhmed 0143341
enable interfacevalues test with mixed grid
AbdAlazezAhmed 720d373
avoid looping over interfaces twice for subdomains in sparsitypatterns
AbdAlazezAhmed File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,6 +107,13 @@ struct FacetIndex <: BoundaryIndex | |
idx::Tuple{Int, Int} # cell and side | ||
end | ||
|
||
""" | ||
An `InterfaceIndex` wraps an (Int, Int, Int, Int) and defines an interface by pointing to a (cell_here, facet_here, cell_there, facet_there). | ||
""" | ||
struct InterfaceIndex <: BoundaryIndex | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This might be unnecessary but I think it's convenient to have it |
||
idx::Tuple{Int, Int, Int, Int} # cell - side - cell - side | ||
end | ||
|
||
const AbstractVecOrSet{T} = Union{AbstractSet{T}, AbstractVector{T}} | ||
const IntegerCollection = AbstractVecOrSet{<:Integer} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -165,6 +165,7 @@ function _create_boundaryset(f::Function, grid::AbstractGrid, top::ExclusiveTopo | |
cell_idx = ff_nh_idx[1] | ||
facet_nr = ff_nh_idx[2] | ||
cell = getcells(grid, cell_idx) | ||
length(facets(cell)) < facet_nr && continue | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix for #1110 |
||
facet_nodes = facets(cell)[facet_nr] | ||
for (subentity_idx, subentity_nodes) in pairs(boundaryfunction(BI)(cell)) | ||
if Base.all(n -> n in facet_nodes, subentity_nodes) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes us avoid dynamic dispatch for getting nodes/coords