-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #321 from gridap/clean_up_nodal_reffe
Clean up nodal reffe
- Loading branch information
Showing
12 changed files
with
99 additions
and
218 deletions.
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 |
---|---|---|
@@ -1,38 +1,29 @@ | ||
""" | ||
struct PDiscRefFE{D} <: LagrangianRefFE{D} | ||
# Private fields | ||
end | ||
""" | ||
struct PDiscRefFE{D} <: LagrangianRefFE{D} | ||
reffe::LagrangianRefFE{D} | ||
polytope::Polytope{D} | ||
|
||
function _PDiscRefFE(::Type{T},p::Polytope,orders) where T | ||
order = first(orders) | ||
@notimplementedif any( orders .!= order ) "Anisotropic serentopity FEs not allowed" | ||
_PDiscRefFE(T,p,order) | ||
end | ||
|
||
function PDiscRefFE(::Type{T},p::Polytope,order::Integer) where T | ||
function _PDiscRefFE(::Type{T},p::Polytope,order::Integer) where T | ||
D = num_cell_dims(p) | ||
extrusion = tfill(TET_AXIS,Val{D}()) | ||
simplex = ExtrusionPolytope(extrusion) | ||
reffe = LagrangianRefFE(T,simplex,order) | ||
PDiscRefFE{D}(reffe,p) | ||
metadata = nothing | ||
face_nodes = [Int[] for face in 1:num_faces(p)] | ||
face_nodes[end] = collect(1:num_nodes(reffe)) | ||
dofs = get_dof_basis(reffe) | ||
face_dofs = _generate_face_own_dofs(face_nodes,dofs.node_and_comp_to_dof) | ||
|
||
reffe = GenericRefFE( | ||
num_dofs(reffe), | ||
p, | ||
get_prebasis(reffe), | ||
get_dof_basis(reffe), | ||
L2Conformity(), | ||
metadata, | ||
face_dofs) | ||
GenericLagrangianRefFE(reffe,face_nodes) | ||
end | ||
|
||
# LagrangianRefFE | ||
|
||
get_face_nodes(reffe::PDiscRefFE) = get_face_own_nodes(reffe) | ||
|
||
# Reffe | ||
|
||
num_dofs(reffe::PDiscRefFE) = num_dofs(reffe.reffe) | ||
|
||
get_polytope(reffe::PDiscRefFE) = reffe.polytope | ||
|
||
get_prebasis(reffe::PDiscRefFE) = get_prebasis(reffe.reffe) | ||
|
||
get_dof_basis(reffe::PDiscRefFE) = get_dof_basis(reffe.reffe) | ||
|
||
get_default_conformity(reffe::PDiscRefFE) = L2Conformity() | ||
|
||
get_face_dofs(reffe::PDiscRefFE) = get_face_own_dofs(reffe) | ||
|
||
get_shapefuns(reffe::PDiscRefFE) = get_shapefuns(reffe.reffe) | ||
|
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
Oops, something went wrong.