Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
amrueda committed Dec 13, 2023
1 parent 43aec2f commit 86f7ab8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/equations/ideal_mhd_multiion_1d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ mutable struct IdealMhdMultiIonEquations1D{NVARS, NCOMP, RealT <: Real} <:
::SVector{NCOMP, RealT},
charge_to_mass
::SVector{NCOMP, RealT}) where
{NVARS, NCOMP, RealT <: Real}
{NVARS, NCOMP, RealT <: Real}
NCOMP >= 1 ||
throw(DimensionMismatch("`gammas` and `charge_to_mass` have to be filled with at least one value"))

Expand Down
6 changes: 3 additions & 3 deletions src/equations/ideal_mhd_multiion_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
The ideal compressible multi-ion MHD equations in two space dimensions.
"""
mutable struct IdealMhdMultiIonEquations2D{NVARS, NCOMP, RealT <: Real, ElectronPressure
} <:
mutable struct IdealMhdMultiIonEquations2D{NVARS, NCOMP, RealT <: Real,
ElectronPressure} <:
AbstractIdealMhdMultiIonEquations{2, NVARS, NCOMP}
gammas::SVector{NCOMP, RealT} # Heat capacity ratios
charge_to_mass::SVector{NCOMP, RealT} # Charge to mass ratios
Expand All @@ -24,7 +24,7 @@ mutable struct IdealMhdMultiIonEquations2D{NVARS, NCOMP, RealT <: Real, Electron
::SVector{NCOMP, RealT},
electron_pressure
::ElectronPressure) where
{NVARS, NCOMP, RealT <: Real, ElectronPressure}
{NVARS, NCOMP, RealT <: Real, ElectronPressure}
NCOMP >= 1 ||
throw(DimensionMismatch("`gammas` and `charge_to_mass` have to be filled with at least one value"))

Expand Down
10 changes: 5 additions & 5 deletions src/semidiscretization/semidiscretization_euler_acoustics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ function SemidiscretizationEulerAcoustics(semi_acoustics::SemiAcoustics,
semi_euler::SemiEuler;
source_region = x -> true,
weights = x -> 1.0) where
{Mesh,
SemiAcoustics <:
SemidiscretizationHyperbolic{Mesh, <:AbstractAcousticPerturbationEquations},
SemiEuler <:
SemidiscretizationHyperbolic{Mesh, <:AbstractCompressibleEulerEquations}}
{Mesh,
SemiAcoustics <:
SemidiscretizationHyperbolic{Mesh, <:AbstractAcousticPerturbationEquations},
SemiEuler <:
SemidiscretizationHyperbolic{Mesh, <:AbstractCompressibleEulerEquations}}
cache = create_cache(SemidiscretizationEulerAcoustics, source_region, weights,
mesh_equations_solver_cache(semi_acoustics)...)

Expand Down
10 changes: 5 additions & 5 deletions src/semidiscretization/semidiscretization_euler_gravity.jl
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ Construct a semidiscretization of the compressible Euler equations with self-gra
function SemidiscretizationEulerGravity(semi_euler::SemiEuler,
semi_gravity::SemiGravity,
parameters) where
{Mesh,
SemiEuler <:
SemidiscretizationHyperbolic{Mesh, <:AbstractCompressibleEulerEquations},
SemiGravity <:
SemidiscretizationHyperbolic{Mesh, <:AbstractHyperbolicDiffusionEquations}}
{Mesh,
SemiEuler <:
SemidiscretizationHyperbolic{Mesh, <:AbstractCompressibleEulerEquations},
SemiGravity <:
SemidiscretizationHyperbolic{Mesh, <:AbstractHyperbolicDiffusionEquations}}
u_ode = compute_coefficients(zero(real(semi_gravity)), semi_gravity)
du_ode = similar(u_ode)
u_tmp1_ode = similar(u_ode)
Expand Down

0 comments on commit 86f7ab8

Please sign in to comment.