Skip to content

Commit

Permalink
update formatting of bottom topography function
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickersing committed Apr 26, 2024
1 parent 1b897af commit ccda956
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ function initial_condition_well_balanced(x, t, equations::ShallowWaterMultiLayer
v1 = zero(H)
v2 = zero(H)
b = (((x[1] - 0.5)^2 + (x[2] - 0.5)^2) < 0.04 ?
0.2 * (cos(4 * pi * sqrt((x[1] - 0.5)^2 + (x[2] +
-0.5)^2)) + 1) : 0.0)
0.2 * (cos(4 * pi * sqrt((x[1] - 0.5)^2 + (x[2] -
0.5)^2)) + 1) : 0.0)

return prim2cons(SVector(H..., v1..., v2..., b),
equations)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ function initial_condition_well_balanced(x, t, equations::ShallowWaterMultiLayer
v1 = zero(H)
v2 = zero(H)
b = (((x[1] - 0.5)^2 + (x[2] - 0.5)^2) < 0.04 ?
0.2 * (cos(4 * pi * sqrt((x[1] - 0.5)^2 + (x[2] +
-0.5)^2)) + 1) : 0.0)
0.2 * (cos(4 * pi * sqrt((x[1] - 0.5)^2 + (x[2] -
0.5)^2)) + 1) : 0.0)

return prim2cons(SVector(H..., v1..., v2..., b),
equations)
Expand Down

0 comments on commit ccda956

Please sign in to comment.