Skip to content

Commit

Permalink
Merge pull request #2061 from CliMA/ck/make_q_bounds
Browse files Browse the repository at this point in the history
Add support for make_q_bounds with new datalayouts
  • Loading branch information
charleskawczynski authored Oct 26, 2024
2 parents eb5517f + 9ef6066 commit bf41449
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Limiters/quasimonotone.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,27 @@ function make_q_bounds(
_, _, _, _, Nh = size(ρq)
return DataLayouts.IFH{S, 2}(similar(parent(ρq), (2, Nf, Nh)))
end
function make_q_bounds(
ρq::Union{DataLayouts.IHF{S}, DataLayouts.IJHF{S}},
) where {S}
Nf = DataLayouts.ncomponents(ρq)
_, _, _, _, Nh = size(ρq)
return DataLayouts.IHF{S, 2}(similar(parent(ρq), (2, Nh, Nf)))
end
function make_q_bounds(
ρq::Union{DataLayouts.VIFH{S}, DataLayouts.VIJFH{S}},
) where {S}
Nf = DataLayouts.ncomponents(ρq)
_, _, _, Nv, Nh = size(ρq)
return DataLayouts.VIFH{S, Nv, 2}(similar(parent(ρq), (Nv, 2, Nf, Nh)))
end
function make_q_bounds(
ρq::Union{DataLayouts.VIHF{S}, DataLayouts.VIJHF{S}},
) where {S}
Nf = DataLayouts.ncomponents(ρq)
_, _, _, Nv, Nh = size(ρq)
return DataLayouts.VIHF{S, Nv, 2}(similar(parent(ρq), (Nv, 2, Nh, Nf)))
end


"""
Expand Down

0 comments on commit bf41449

Please sign in to comment.