Skip to content

Commit

Permalink
comment unused lines
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickersing committed Jan 12, 2024
1 parent 209d746 commit 9ffdc27
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions src/equations/shallow_water_wet_dry_1d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -539,12 +539,12 @@ end
eps()))
end

# Helper function to extract the velocity vector from the conservative variables
@inline function Trixi.velocity(u, equations::ShallowWaterEquationsWetDry1D)
return Trixi.velocity(u,
Trixi.ShallowWaterEquations1D(equations.gravity, equations.H0,
eps(), eps()))
end
# # Helper function to extract the velocity vector from the conservative variables
# @inline function Trixi.velocity(u, equations::ShallowWaterEquationsWetDry1D)
# return Trixi.velocity(u,
# Trixi.ShallowWaterEquations1D(equations.gravity, equations.H0,
# eps(), eps()))
# end

# Convert conservative variables to primitive
@inline function Trixi.cons2prim(u, equations::ShallowWaterEquationsWetDry1D)
Expand Down Expand Up @@ -576,24 +576,24 @@ end
equations.H0, eps(), eps()))
end

@inline function Trixi.waterheight(u, equations::ShallowWaterEquationsWetDry1D)
return Trixi.waterheight(u,
Trixi.ShallowWaterEquations1D(equations.gravity,
equations.H0, eps(), eps()))
end
# @inline function Trixi.waterheight(u, equations::ShallowWaterEquationsWetDry1D)
# return Trixi.waterheight(u,
# Trixi.ShallowWaterEquations1D(equations.gravity,
# equations.H0, eps(), eps()))
# end

@inline function Trixi.pressure(u, equations::ShallowWaterEquationsWetDry1D)
return Trixi.pressure(u,
Trixi.ShallowWaterEquations1D(equations.gravity, equations.H0,
eps(), eps()))
end
# @inline function Trixi.pressure(u, equations::ShallowWaterEquationsWetDry1D)
# return Trixi.pressure(u,
# Trixi.ShallowWaterEquations1D(equations.gravity, equations.H0,
# eps(), eps()))
# end

@inline function Trixi.waterheight_pressure(u, equations::ShallowWaterEquationsWetDry1D)
return Trixi.waterheight_pressure(u,
Trixi.ShallowWaterEquations1D(equations.gravity,
equations.H0, eps(),
eps()))
end
# @inline function Trixi.waterheight_pressure(u, equations::ShallowWaterEquationsWetDry1D)
# return Trixi.waterheight_pressure(u,
# Trixi.ShallowWaterEquations1D(equations.gravity,
# equations.H0, eps(),
# eps()))
# end

# Entropy function for the shallow water equations is the total energy
@inline function Trixi.entropy(cons, equations::ShallowWaterEquationsWetDry1D)
Expand Down

0 comments on commit 9ffdc27

Please sign in to comment.