Skip to content

Commit c139e78

Browse files
authored
Use more unique values in InputOutput hybrid box tests (#2205)
* Make InputOutput hybrid box tests use more unique values * Use z-component in test for consistency
1 parent b7a1d11 commit c139e78

4 files changed

+11
-8
lines changed

test/InputOutput/unit_hybrid2dbox.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ end
104104
coord -> init_dry_rising_bubble_2d(coord.x, coord.z, params),
105105
coords,
106106
)
107-
uₕ = map(_ -> Geometry.Covariant1Vector(0.0), coords)
108-
w = map(_ -> Geometry.Covariant3Vector(0.0), face_coords)
107+
uₕ = map(coord -> Geometry.Covariant1Vector(coord.x * 0.1), coords)
108+
w = map(coord -> Geometry.Covariant3Vector(coord.z * 0.2), face_coords)
109109
Y = Fields.FieldVector(Yc = Yc, uₕ = uₕ, w = w)
110110

111111
# write field vector to hdf5 file

test/InputOutput/unit_hybrid2dbox_stretched.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ end
105105
coord -> init_dry_rising_bubble_2d(coord.x, coord.z, params),
106106
coords,
107107
)
108-
uₕ = map(_ -> Geometry.Covariant1Vector(0.0), coords)
109-
w = map(_ -> Geometry.Covariant3Vector(0.0), face_coords)
108+
uₕ = map(coord -> Geometry.Covariant1Vector(coord.x * 0.1), coords)
109+
w = map(coord -> Geometry.Covariant3Vector(coord.z * 0.2), face_coords)
110110
Y = Fields.FieldVector(Yc = Yc, uₕ = uₕ, w = w)
111111

112112
# write field vector to hdf5 file

test/InputOutput/unit_hybrid2dbox_topography.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ end
116116
coord -> init_dry_rising_bubble_2d(coord.x, coord.z, params),
117117
coords,
118118
)
119-
uₕ = map(_ -> Geometry.Covariant1Vector(0.0), coords)
120-
w = map(_ -> Geometry.Covariant3Vector(0.0), face_coords)
119+
uₕ = map(coord -> Geometry.Covariant1Vector(coord.x * 0.11), coords)
120+
w = map(coord -> Geometry.Covariant3Vector(coord.z * 0.25), face_coords)
121121
Y = Fields.FieldVector(Yc = Yc, uₕ = uₕ, w = w)
122122

123123
# write field vector to hdf5 file

test/InputOutput/unit_hybrid3dbox.jl

+5-2
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,11 @@ end
116116
init_dry_rising_bubble_3d(coord.x, coord.y, coord.z, params),
117117
coords,
118118
)
119-
uₕ = map(_ -> Geometry.Covariant12Vector(0.0, 0.0), coords)
120-
w = map(_ -> Geometry.Covariant3Vector(0.0), face_coords)
119+
uₕ = map(
120+
coord -> Geometry.Covariant12Vector(coord.x * 0.1, coord.y * 0.15),
121+
coords,
122+
)
123+
w = map(coord -> Geometry.Covariant3Vector(coord.z * 0.3), face_coords)
121124
Y = Fields.FieldVector(Yc = Yc, uₕ = uₕ, w = w)
122125

123126
# write field vector to hdf5 file

0 commit comments

Comments
 (0)