Skip to content

Commit

Permalink
fix variable
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed Jul 2, 2022
1 parent 6401776 commit 8cc0def
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Operators/spectralelement.jl
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ Base.@propagate_inbounds function get_local_geometry(
else
v = slabidx.v
end
Spaces.local_geometry_data(local_geometry)[i, j, nothing, v, h]
Spaces.local_geometry_data(space)[i, j, nothing, v, h]
end
Base.@propagate_inbounds function get_local_geometry(
space::Spaces.AbstractSpectralElementSpace,
Expand All @@ -329,7 +329,7 @@ Base.@propagate_inbounds function get_local_geometry(
else
v = slabidx.v
end
Spaces.local_geometry_data(local_geometry)[i, j, nothing, v, h]
Spaces.local_geometry_data(space)[i, j, nothing, v, h]
end

Base.@propagate_inbounds function set_node!(
Expand Down Expand Up @@ -1222,7 +1222,7 @@ function apply_operator(op::Restrict{(1, 2)}, space_out, slabidx, arg)
end
@inbounds for j in 1:Nq_out, i in 1:Nq_out
ij_out = CartesianIndex((i, j))
WJ_out = get_local_geometry(space_out, ij, slabidx)
WJ_out = get_local_geometry(space_out, ij_out, slabidx)
slab_data_out[i, j] = RecursiveApply.rdiv(
RecursiveApply.rmatmul2(ImatT, temp, i, j),
WJ_out,
Expand Down

0 comments on commit 8cc0def

Please sign in to comment.