Skip to content

Commit

Permalink
reducing the degree in moment based FEs
Browse files Browse the repository at this point in the history
  • Loading branch information
santiagobadia committed Aug 26, 2022
1 parent 3bc69e2 commit 0af90b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/ReferenceFEs/NedelecRefFEs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function _Nedelec_edge_values(p,et,order)
egeomap = _ref_face_to_faces_geomap(p,ep)

# Compute integration points at all polynomial edges
degree = (order+1)*2
degree = (order)*2
equad = Quadrature(ep,degree)
cips = get_coordinates(equad)
wips = get_weights(equad)
Expand Down Expand Up @@ -163,7 +163,7 @@ function _Nedelec_face_values(p,et,order)
fgeomap = _ref_face_to_faces_geomap(p,fp)

# Compute integration points at all polynomial edges
degree = (order+1)*2
degree = (order)*2
fquad = Quadrature(fp,degree)
fips = get_coordinates(fquad)
wips = get_weights(fquad)
Expand Down Expand Up @@ -209,7 +209,7 @@ function _Nedelec_face_values_simplex(p,et,order)
fgeomap = _ref_face_to_faces_geomap(p,fp)

# Compute integration points at all polynomial edges
degree = (order+1)*2
degree = (order)*2
fquad = Quadrature(fp,degree)
fips = get_coordinates(fquad)
wips = get_weights(fquad)
Expand Down Expand Up @@ -256,7 +256,7 @@ end
function _Nedelec_cell_values(p,et,order)

# Compute integration points at interior
degree = 2*(order+1)
degree = 2*(order)
iquad = Quadrature(p,degree)
ccips = get_coordinates(iquad)
cwips = get_weights(iquad)
Expand Down
4 changes: 2 additions & 2 deletions src/ReferenceFEs/RaviartThomasRefFEs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function _RT_face_values(p,et,order,phi)
# the one of the points in the polytope after applying the geopmap
# (fcips), and the weights for these nodes (fwips, a constant cell array)
# Nodes (fcips)
degree = (order+1)*2
degree = (order)*2
fquad = Quadrature(fp,degree)
fips = get_coordinates(fquad)
wips = get_weights(fquad)
Expand Down Expand Up @@ -207,7 +207,7 @@ _p_filter(e,order) = (sum(e) <= order)
# It provides for every cell the nodes and the moments arrays
function _RT_cell_values(p,et,order,phi)
# Compute integration points at interior
degree = 2*(order+1)
degree = 2*(order)
iquad = Quadrature(p,degree)
ccips = get_coordinates(iquad)
cwips = get_weights(iquad)
Expand Down

0 comments on commit 0af90b3

Please sign in to comment.