Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Commit

Permalink
Switch to using CentralNumericalFluxFirstOrder for ShallowWaterModel
Browse files Browse the repository at this point in the history
This matches up numerical fluxes for the continuity equation in the
baroclinic and barotropic models
  • Loading branch information
blallen committed Jul 2, 2020
1 parent d16d820 commit b880f03
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 259 deletions.
2 changes: 1 addition & 1 deletion test/Ocean/ShallowWater/2D_hydrostatic_spindown.jl
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function run_hydrostatic_spindown(; refDat = ())
dg_2D = DGModel(
model_2D,
grid_2D,
RusanovNumericalFlux(),
CentralNumericalFluxFirstOrder(),
CentralNumericalFluxSecondOrder(),
CentralNumericalFluxGradient(),
)
Expand Down
2 changes: 1 addition & 1 deletion test/Ocean/SplitExplicit/hydrostatic_spindown.jl
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ function run_hydrostatic_spindown(;
dg_2D = DGModel(
model_2D,
grid_2D,
RusanovNumericalFlux(),
CentralNumericalFluxFirstOrder(),
CentralNumericalFluxSecondOrder(),
CentralNumericalFluxGradient(),
)
Expand Down
24 changes: 12 additions & 12 deletions test/Ocean/refvals/2D_hydrostatic_spindown_refvals.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,26 @@ explicit = [
[
"2D state",
,
-8.52722863677453757347e-01,
8.52828186384614328475e-01,
-2.32169838909612754587e-16,
6.03454974395413956678e-01,
-8.52722969951589915283e-01,
8.52846676313531282254e-01,
-2.49578135935735214742e-16,
6.03454239990563690021e-01,
],
[
"2D state",
"U[1]",
-3.15402615071803076319e+01,
3.15402615071801157853e+01,
6.16398876385204608714e-15,
2.24269405191038053715e+01,
-3.15431401945821825450e+01,
3.15431401945818628008e+01,
6.11504145930918957291e-15,
2.24273815174625497093e+01,
],
[
"2D state",
"U[2]",
-4.60204855830197230363e-13,
5.29714995818968166418e-13,
1.33362479920413591115e-14,
1.36912259776863805290e-13,
-7.62224398365580242501e-13,
9.72156930292624284356e-13,
1.39269607441935025982e-14,
1.95606703846656748360e-13,
],
]

Expand Down
Loading

0 comments on commit b880f03

Please sign in to comment.