We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eb5517f + 9ef6066 commit bf41449Copy full SHA for bf41449
src/Limiters/quasimonotone.jl
@@ -74,13 +74,27 @@ function make_q_bounds(
74
_, _, _, _, Nh = size(ρq)
75
return DataLayouts.IFH{S, 2}(similar(parent(ρq), (2, Nf, Nh)))
76
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
84
function make_q_bounds(
85
ρq::Union{DataLayouts.VIFH{S}, DataLayouts.VIJFH{S}},
86
) where {S}
87
Nf = DataLayouts.ncomponents(ρq)
88
_, _, _, Nv, Nh = size(ρq)
89
return DataLayouts.VIFH{S, Nv, 2}(similar(parent(ρq), (Nv, 2, Nf, Nh)))
90
91
92
+ ρq::Union{DataLayouts.VIHF{S}, DataLayouts.VIJHF{S}},
93
94
95
+ _, _, _, Nv, Nh = size(ρq)
96
+ return DataLayouts.VIHF{S, Nv, 2}(similar(parent(ρq), (Nv, 2, Nh, Nf)))
97
98
99
100
"""
0 commit comments