Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit e456af3

Browse files
committed
remove assertation
1 parent c9ca6a1 commit e456af3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/derivative_operators/derivative_operator.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,6 @@ function CompleteUpwindDifference(derivative_order::Int,
474474
offside::Int=0) where {T<:Real,N}
475475

476476
@assert offside > -1 "Number of offside points should be non-negative"
477-
@assert offside <= div(derivative_order + approximation_order - 1,2) "Number of offside points should not exceed the primary wind points"
478477

479478
stencil_length = derivative_order + approximation_order
480479
boundary_stencil_length = derivative_order + approximation_order
@@ -514,7 +513,6 @@ function CompleteUpwindDifference(derivative_order::Int,
514513
approximation_order::Int, x::AbstractVector{T}, offside::Int=0) where {T<:Real,N}
515514

516515
@assert offside > -1 "Number of offside points should be non-negative"
517-
@assert offside <= div(derivative_order + approximation_order - 1, 2) "Number of offside points should not exceed the primary wind points"
518516

519517
stencil_length = derivative_order + approximation_order
520518
boundary_stencil_length = derivative_order + approximation_order

0 commit comments

Comments
 (0)