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

Commit

Permalink
account for ghost elements
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremy E Kozdon <jekozdon@nps.edu>
  • Loading branch information
blallen and Jeremy E Kozdon authored Jun 30, 2020
1 parent 02f8062 commit 1fbfd6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Ocean/HydrostaticBoussinesq/HydrostaticBoussinesqModel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -640,10 +640,10 @@ function update_auxiliary_state_gradient!(
wz0 = A.data[:, index_wz0, :]

# project w(z=0) down the stack
Nq, Nqk, _, _, nelemv, _, nelemh, _ = basic_grid_info(dg)
Nq, Nqk, _, _, nelemv, nelemh, nhorzrealelem, _ = basic_grid_info(dg)
data = reshape(A.data, Nq^2, Nqk, number_auxiliary, nelemv, nelemh)
flat_wz0 = @view data[:, end:end, index_w, end:end, :]
boxy_wz0 = @view data[:, :, index_wz0, :, :]
flat_wz0 = @view data[:, end:end, index_w, end:end, 1:nhorzrealelem]
boxy_wz0 = @view data[:, :, index_wz0, :, 1:nhorzrealelem]
boxy_wz0 .= flat_wz0

return true
Expand Down

0 comments on commit 1fbfd6e

Please sign in to comment.