comparison src/SbpOperators/volumeops/derivatives/second_derivative_variable.jl @ 913:cad3a9f82009 feature/variable_derivatives

Remove some commented lines of code
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 17 Feb 2022 08:46:19 +0100
parents 33c7e266e1a9
children fc1f03fc8d65
comparison
equal deleted inserted replaced
912:f800f97b3a45 913:cad3a9f82009
73 function derivative_view(op, a, I) 73 function derivative_view(op, a, I)
74 d = derivative_direction(op) 74 d = derivative_direction(op)
75 75
76 Iview = Base.setindex(I,:,d) 76 Iview = Base.setindex(I,:,d)
77 return @view a[Iview...] 77 return @view a[Iview...]
78
79 # D = domain_dim(op)
80 # Iₗ, _, Iᵣ = split_tuple(I, Val(d-1), Val(1), Val(D-d))
81 # return @view a[Iₗ..., :, Iᵣ...]
82 end 78 end
83 79
84 function apply_lower(op::SecondDerivativeVariable, v, I...) 80 function apply_lower(op::SecondDerivativeVariable, v, I...)
85 ṽ = derivative_view(op, v, I) 81 ṽ = derivative_view(op, v, I)
86 c̃ = derivative_view(op, op.coefficient, I) 82 c̃ = derivative_view(op, op.coefficient, I)