From c416a8112b342bda62fcf9c5f53fec93574632c4 Mon Sep 17 00:00:00 2001 From: Daniel_Doehring Date: Fri, 10 Jan 2025 10:46:41 +0100 Subject: [PATCH] do not export --- ext/TrixiConvexECOSExt.jl | 6 +++--- .../paired_explicit_runge_kutta/polynomial_optimizer.jl | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ext/TrixiConvexECOSExt.jl b/ext/TrixiConvexECOSExt.jl index e9fbd53fec8..d9e4aeedec5 100644 --- a/ext/TrixiConvexECOSExt.jl +++ b/ext/TrixiConvexECOSExt.jl @@ -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, @@ -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 diff --git a/src/time_integration/paired_explicit_runge_kutta/polynomial_optimizer.jl b/src/time_integration/paired_explicit_runge_kutta/polynomial_optimizer.jl index bfd53ba2eaf..0598427ad05 100644 --- a/src/time_integration/paired_explicit_runge_kutta/polynomial_optimizer.jl +++ b/src/time_integration/paired_explicit_runge_kutta/polynomial_optimizer.jl @@ -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