-
Notifications
You must be signed in to change notification settings - Fork 93
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
let DofHandler take any AbstractGrid subtype #307
Conversation
Codecov Report
@@ Coverage Diff @@
## master #307 +/- ##
==========================================
- Coverage 85.80% 84.38% -1.42%
==========================================
Files 21 21
Lines 2000 2036 +36
==========================================
+ Hits 1716 1718 +2
- Misses 284 318 +34
Continue to review full report at Codecov.
|
Maybe this is a little off-topic here - but why do you want to use the DofHandler in adaptivity and not the MixedDofHandler? Would it still be possible to use your adaptivity implementation with grids that have different cell types in them? (Or does this make no sense? ) |
Ultimately, I want to support both cases that's why I opened the discussion for |
…JuAFEM workflow (heat-equation tested)
…in, tests should work now (except documentation tests)
This branch can now reproduce the heat equation with any subtyped Maybe some interesting insights from this:
The screenshot shows the solution of the heat-equation example, but instead of |
… from some argument
…s, still need to test it on our subtyped grid
Since |
Actually, it's not so important anymore. We thought initially that we can reuse However, the change in |
This is essentially the same as https://github.com/KristofferC/JuAFEM.jl/pull/302 , but instead of
MixedDofHandler
done forDofHandler
The
DofHandler
should work for any properly subtypedAbstractGrid
. Obviously, one could subtypeAbstractDofHandler
but this is in a lot of cases unnecessary because theDofHandler
is pretty robust. In our case we want just to swap theGrid
datastructure.The new parametrisation is open for discussion, but we want to reuse the
DofHandler
for adaptivity and thus, need the proposed flexibility w.r.t. the grid typeAs pointed out in https://github.com/KristofferC/JuAFEM.jl/pull/302 I'd like the most something like
DofHandler{Grid{dim, C, T}}
for the existing stuff, which would lead toDofHandler{G<:AbstractGrid}
, but I'm unsure and need feedback on this. The first commit uses this option:DofHandler{dim,C,T,G <: AbstractGrid}
Edit: Second commit includes
DofHandler{G <: AbstractGrid, T}
option