Skip to content

Commit

Permalink
do not export
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielDoehring committed Jan 10, 2025
1 parent 99f754b commit c416a81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ext/TrixiConvexECOSExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ using ECOS: Optimizer
using LinearAlgebra: eigvals

# Use functions that are to be extended and additional symbols that are not exported
using Trixi: Trixi, undo_normalization!, bisect_stability_polynomial, @muladd
using Trixi: Trixi, bisect_stability_polynomial, @muladd

# By default, Julia/LLVM does not use fused multiply-add operations (FMAs).
# Since these FMAs can increase the performance of many numerical algorithms,
Expand All @@ -20,8 +20,8 @@ using Trixi: Trixi, undo_normalization!, bisect_stability_polynomial, @muladd

# Undo normalization of stability polynomial coefficients by index factorial
# relative to consistency order.
function Trixi.undo_normalization!(gamma_opt, num_stage_evals,
num_reduced_coeffs, fac_offset)
function undo_normalization!(gamma_opt, num_stage_evals,
num_reduced_coeffs, fac_offset)
for k in 1:(num_stage_evals - num_reduced_coeffs)
gamma_opt[k] /= factorial(k + fac_offset)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ end
# Add definitions of functions related to polynomial optimization by Convex and ECOS here
# such that hey can be exported from Trixi.jl and extended in the TrixiConvexECOSExt package
# extension or by the Convex and ECOS-specific code loaded by Requires.jl
function undo_normalization! end
function bisect_stability_polynomial end

0 comments on commit c416a81

Please sign in to comment.