From 34dc448659fab472882d363ba936d128d27ea7d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Rueda-Ram=C3=ADrez?= Date: Tue, 7 Nov 2023 17:56:25 +0100 Subject: [PATCH] Changed format of `magnetic_field` for consistency --- src/equations/ideal_glm_mhd_2d.jl | 4 +++- src/equations/ideal_glm_mhd_multicomponent_2d.jl | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/equations/ideal_glm_mhd_2d.jl b/src/equations/ideal_glm_mhd_2d.jl index 6bb9684cf6c..4092c7bc952 100644 --- a/src/equations/ideal_glm_mhd_2d.jl +++ b/src/equations/ideal_glm_mhd_2d.jl @@ -1340,5 +1340,7 @@ end end # Return the magnetic field -magnetic_field(u, equations::IdealGlmMhdEquations2D) = SVector(u[6], u[7], u[8]) +function magnetic_field(u, equations::IdealGlmMhdEquations2D) + return SVector(u[6], u[7], u[8]) +end end # @muladd diff --git a/src/equations/ideal_glm_mhd_multicomponent_2d.jl b/src/equations/ideal_glm_mhd_multicomponent_2d.jl index 18320a2de75..74a5873f752 100644 --- a/src/equations/ideal_glm_mhd_multicomponent_2d.jl +++ b/src/equations/ideal_glm_mhd_multicomponent_2d.jl @@ -714,6 +714,6 @@ end # Return the magnetic field function magnetic_field(u, equations::IdealGlmMhdMulticomponentEquations2D) - SVector(u[5], u[6], u[7]) + return SVector(u[5], u[6], u[7]) end end # @muladd