Mercurial > repos > public > sbplib_julia
changeset 931:720b1358e06d feature/variable_derivatives
More strict apply
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 21 Feb 2022 15:22:44 +0100 |
parents | ba5f4a0ec879 |
children | 863287577ad4 |
files | src/SbpOperators/volumeops/derivatives/second_derivative_variable.jl |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/SbpOperators/volumeops/derivatives/second_derivative_variable.jl Mon Feb 21 12:57:58 2022 +0100 +++ b/src/SbpOperators/volumeops/derivatives/second_derivative_variable.jl Mon Feb 21 15:22:44 2022 +0100 @@ -103,8 +103,10 @@ return apply_lower(op, v, Int.(I)...) elseif I[derivative_direction(op)] isa Index{Upper} return apply_upper(op, v, Int.(I)...) + elseif I[derivative_direction(op)] isa Index{Interior} + return apply_interior(op, v, Int.(I)...) else - return apply_interior(op, v, Int.(I)...) + error("Invalid region") end end