Skip to content

Commit bf41449

Browse files
Merge pull request #2061 from CliMA/ck/make_q_bounds
Add support for make_q_bounds with new datalayouts
2 parents eb5517f + 9ef6066 commit bf41449

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Limiters/quasimonotone.jl

+14
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,27 @@ function make_q_bounds(
7474
_, _, _, _, Nh = size(ρq)
7575
return DataLayouts.IFH{S, 2}(similar(parent(ρq), (2, Nf, Nh)))
7676
end
77+
function make_q_bounds(
78+
ρq::Union{DataLayouts.IHF{S}, DataLayouts.IJHF{S}},
79+
) where {S}
80+
Nf = DataLayouts.ncomponents(ρq)
81+
_, _, _, _, Nh = size(ρq)
82+
return DataLayouts.IHF{S, 2}(similar(parent(ρq), (2, Nh, Nf)))
83+
end
7784
function make_q_bounds(
7885
ρq::Union{DataLayouts.VIFH{S}, DataLayouts.VIJFH{S}},
7986
) where {S}
8087
Nf = DataLayouts.ncomponents(ρq)
8188
_, _, _, Nv, Nh = size(ρq)
8289
return DataLayouts.VIFH{S, Nv, 2}(similar(parent(ρq), (Nv, 2, Nf, Nh)))
8390
end
91+
function make_q_bounds(
92+
ρq::Union{DataLayouts.VIHF{S}, DataLayouts.VIJHF{S}},
93+
) where {S}
94+
Nf = DataLayouts.ncomponents(ρq)
95+
_, _, _, Nv, Nh = size(ρq)
96+
return DataLayouts.VIHF{S, Nv, 2}(similar(parent(ρq), (Nv, 2, Nh, Nf)))
97+
end
8498

8599

86100
"""

0 commit comments

Comments
 (0)