comparison src/SbpOperators/volumeops/derivatives/second_derivative_variable.jl @ 891:f72cc96a58c6 feature/variable_derivatives

Add some size tests
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 08 Feb 2022 10:58:31 +0100
parents 069e58fb3829
children 422c9f22cf92
comparison
equal deleted inserted replaced
890:eb03bda76bae 891:f72cc96a58c6
49 return SecondDerivativeVariable(grid, coeff, inner_stencil, closure_stencils, 1) 49 return SecondDerivativeVariable(grid, coeff, inner_stencil, closure_stencils, 1)
50 end 50 end
51 51
52 derivative_direction(::SecondDerivativeVariable{Dir}) where {Dir} = Dir 52 derivative_direction(::SecondDerivativeVariable{Dir}) where {Dir} = Dir
53 53
54 closure_size(::SecondDerivativeVariable{T,N,M}) where {T,N,M} = M 54 closure_size(op::SecondDerivativeVariable) = length(op.closure_stencils)
55 55
56 LazyTensors.range_size(op::SecondDerivativeVariable) = op.size 56 LazyTensors.range_size(op::SecondDerivativeVariable) = op.size
57 LazyTensors.domain_size(op::SecondDerivativeVariable) = op.size 57 LazyTensors.domain_size(op::SecondDerivativeVariable) = op.size
58 58
59 59