Skip to content

Commit aa08190

Browse files
committed
Sanitize NKPanelSystem input against z reflection
1 parent 710d3ec commit aa08190

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/NKPanelSystem.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ struct NKPanelSystem{B,T,M,A} <: AbstractPanelSystem
3333
end
3434
function NKPanelSystem(body; ℓ, Umag=1, sym_axes=(), filter=true, contour=false)
3535
any(x->x[3]0,body.x) && throw(ArgumentError("NK panels must be below z=0"))
36+
3 sym_axes && throw(ArgumentError("Cannot reflect NK panels above z=0"))
3637
NKPanelSystem(Table(body,q=zeros_like(body.dA)), SA[-abs(Umag),0,0], mirrors(sym_axes...), (;ℓ,filter,contour))
3738
end
3839

0 commit comments

Comments
 (0)