From 6e95dab6ae61c535cc1c56995c719ae8e7056a12 Mon Sep 17 00:00:00 2001 From: SimonCan Date: Thu, 9 Nov 2023 16:48:27 +0000 Subject: [PATCH] Removed coupling converter functions. These should be part of a different PR. --- src/Trixi.jl | 3 -- .../coupling_converters_2d.jl | 37 ------------------- 2 files changed, 40 deletions(-) delete mode 100644 src/coupling_converters/coupling_converters_2d.jl diff --git a/src/Trixi.jl b/src/Trixi.jl index 25d3affb42b..4169700898a 100644 --- a/src/Trixi.jl +++ b/src/Trixi.jl @@ -125,7 +125,6 @@ include("time_integration/time_integration.jl") include("callbacks_step/callbacks_step.jl") include("callbacks_stage/callbacks_stage.jl") include("semidiscretization/semidiscretization_euler_gravity.jl") -include("time_integration/time_integration.jl") # `trixi_include` and special elixirs such as `convergence_test` include("auxiliary/special_elixirs.jl") @@ -200,8 +199,6 @@ export boundary_condition_do_nothing, BoundaryConditionNavierStokesWall, NoSlip, Adiabatic, Isothermal, BoundaryConditionCoupled -export coupling_converter_heaviside_2d - export initial_condition_convergence_test, source_terms_convergence_test export source_terms_harmonic export initial_condition_poisson_nonperiodic, source_terms_poisson_nonperiodic, diff --git a/src/coupling_converters/coupling_converters_2d.jl b/src/coupling_converters/coupling_converters_2d.jl deleted file mode 100644 index e360ffc4eac..00000000000 --- a/src/coupling_converters/coupling_converters_2d.jl +++ /dev/null @@ -1,37 +0,0 @@ -# By default, Julia/LLVM does not use fused multiply-add operations (FMAs). -# Since these FMAs can increase the performance of many numerical algorithms, -# we need to opt-in explicitly. -# See https://ranocha.de/blog/Optimizing_EC_Trixi for further details. -@muladd begin -#! format: noindent - - -@doc raw""" - Coupling converter function for a system of two LinearScalarAdvectionEquation2D. - -The coupling is given as a Heaviside step. -```math -c(x) = {c_0, for x \ge x_0 \times s - 0, for x < x_0 \times s} -``` -Here, `s` is the sign of the step function, x_0 the save_position -of the step and c_0 the amplitude. -""" -function coupling_converter_heaviside_2d(x_0, c_0, s) - return (x, u) -> c_0 * (s*sign(x[2] - x_0) + 1.0)/2.0 * u -end - - -@doc raw""" - Coupling converter function for a system of two LinearScalarAdvectionEquation2D. - -The coupling is given as a linear function. -```math -c(x) = x * u(x) -``` -""" -function coupling_converter_linear_2d() - return (x, u) -> x[2]*u -end - -end # @muladd