Skip to content

Commit 087d4a0

Browse files
committed
remove shape_symmetric_gradient from CV and FV in favour of default
1 parent 2e629ae commit 087d4a0

3 files changed

Lines changed: 1 addition & 5 deletions

File tree

src/FEValues/CellValues.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ shape_hessian_type(cv::CellValues) = shape_hessian_type(cv.fun_values)
100100
@propagate_inbounds shape_value(cv::CellValues, q_point::Int, i::Int) = shape_value(cv.fun_values, q_point, i)
101101
@propagate_inbounds shape_gradient(cv::CellValues, q_point::Int, i::Int) = shape_gradient(cv.fun_values, q_point, i)
102102
@propagate_inbounds shape_hessian(cv::CellValues, q_point::Int, i::Int) = shape_hessian(cv.fun_values, q_point, i)
103-
@propagate_inbounds shape_symmetric_gradient(cv::CellValues, q_point::Int, i::Int) = shape_symmetric_gradient(cv.fun_values, q_point, i)
104103

105104
# Access quadrature rule values
106105
get_quadrature_rule(cv::CellValues) = cv.qr

src/FEValues/FacetValues.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ get_fun_values(fv::FacetValues) = @inbounds fv.fun_values[getcurrentfacet(fv)]
9393
@propagate_inbounds shape_value(fv::FacetValues, q_point::Int, i::Int) = shape_value(get_fun_values(fv), q_point, i)
9494
@propagate_inbounds shape_gradient(fv::FacetValues, q_point::Int, i::Int) = shape_gradient(get_fun_values(fv), q_point, i)
9595
@propagate_inbounds shape_hessian(fv::FacetValues, q_point::Int, i::Int) = shape_hessian(get_fun_values(fv), q_point, i)
96-
@propagate_inbounds shape_symmetric_gradient(fv::FacetValues, q_point::Int, i::Int) = shape_symmetric_gradient(get_fun_values(fv), q_point, i)
9796

9897
"""
9998
getcurrentfacet(fv::FacetValues)

src/FEValues/common_values.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ shape_gradient(fe_v::AbstractValues, q_point::Int, base_function::Int)
135135
Return the symmetric gradient of shape function `base_function` evaluated in
136136
quadrature point `q_point`.
137137
"""
138-
function shape_symmetric_gradient end
138+
@propagate_inbounds shape_symmetric_gradient(cv::AbstractValues, q_point::Int, base_func::Int) = symmetric(shape_gradient(cv, q_point, base_func))
139139

140140
"""
141141
shape_divergence(fe_v::AbstractValues, q_point::Int, base_function::Int)
@@ -161,8 +161,6 @@ end
161161
curl_from_gradient(∇v::SecondOrderTensor{3}) = Vec{3}((∇v[3, 2] - ∇v[2, 3], ∇v[1, 3] - ∇v[3, 1], ∇v[2, 1] - ∇v[1, 2]))
162162
curl_from_gradient(∇v::SecondOrderTensor{2}) = Vec{1}((∇v[2, 1] - ∇v[1, 2],)) # Alternatively define as Vec{3}((0, 0, v))
163163

164-
@propagate_inbounds shape_symmetric_gradient(cv::AbstractValues, q_point::Int, base_func::Int) = symmetric(shape_gradient(cv, q_point, base_func))
165-
166164
"""
167165
function_value(fe_v::AbstractValues, q_point::Int, u::AbstractVector, [dof_range])
168166

0 commit comments

Comments
 (0)