Skip to content

Commit

Permalink
Changed format of magnetic_field for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
amrueda committed Nov 7, 2023
1 parent 9e8dd98 commit 34dc448
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/equations/ideal_glm_mhd_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/equations/ideal_glm_mhd_multicomponent_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 34dc448

Please sign in to comment.