Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test for implicit free surface with ImmersedBoundary and indexed ReducedFields #2723

Closed
wants to merge 24 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion test/test_implicit_free_surface_solver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,18 @@ function set_simple_divergent_velocity!(model)

imid = Int(floor(grid.Nx / 2)) + 1
jmid = Int(floor(grid.Ny / 2)) + 1
CUDA.@allowscalar u[imid, jmid, 1] = 1

k_index = 1

grid isa ImmersedBoundaryGrid && begin
while grid.immersed_boundary.bottom_height[imid, jmid] > grid.underlying_grid.zᵃᵃᶜ[k_index]
k_index += 1
end
end

k_index = k_index + 1 ≤ grid.Nz ? k_index + 1 : k_index
navidcy marked this conversation as resolved.
Show resolved Hide resolved

CUDA.@allowscalar u[imid, jmid, k_index] = 0.1

update_state!(model)

Expand Down