Skip to content

Commit

Permalink
Prevent to many warning messages
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuRoule committed May 15, 2024
1 parent 117de62 commit 98027c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Chebyshev/Chebyshev.jl
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ function GetaXi!(FHT::ChebyshevFHT,
tabGXi::AbstractVector{Float64},
res::Vector{Float64},warnflag::Vector{Float64})

println("FiniteHilbertTransform.GetaXi!: deprecation warning: warnflag is now an integer.")
@warn "FiniteHilbertTransform.GetaXi!: deprecation warning: warnflag is now an integer." maxlog=1

res,warnval = GetaXi!(FHT,tabG,res,0)
warnflag[1] = warnval
Expand Down
2 changes: 1 addition & 1 deletion src/Legendre/Legendre.jl
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ function GetaXi!(FHT::LegendreFHT,
tabG::AbstractVector{Float64},
res::Vector{Float64},warnflag::Vector{Float64})

println("FiniteHilbertTransform.GetaXi!: deprecation warning: warnflag is now an integer.")
@warn "FiniteHilbertTransform.GetaXi!: deprecation warning: warnflag is now an integer." maxlog=1

res,warnval = GetaXi!(FHT,tabG,res,0)
warnflag[1] = warnval
Expand Down

1 comment on commit 98027c4

@michael-petersen
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great change, thanks!

Please sign in to comment.