Skip to content

Commit 832e9ce

Browse files
committed
Fixes for slab_type
1 parent 267f3f4 commit 832e9ce

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/Operators/spectralelement.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1674,11 +1674,10 @@ function apply_operator(
16741674
FT = Spaces.undertype(space)
16751675
RT = operator_return_eltype(op, eltype(arg))
16761676
zero_value = zero(RT)
1677-
slab_type = DataLayouts.slab_type(space)
1678-
QS = Spaces.quadrature_style(space)
1679-
Nq = Quadratures.degrees_of_freedom(QS)
16801677

1681-
if slab_type === DataLayouts.IJF
1678+
if slab_type(space) === DataLayouts.IJF
1679+
QS = Spaces.quadrature_style(space)
1680+
Nq = Quadratures.degrees_of_freedom(QS)
16821681
out = DataLayouts.IJF{RT, Nq}(MArray, FT)
16831682
fill!(parent(out), zero(FT))
16841683
out[slab_index(1, 1)] = zero_value

0 commit comments

Comments
 (0)