diff --git a/src/bases/stagedtimestep.jl b/src/bases/stagedtimestep.jl index 5ad660065..cf550d936 100644 --- a/src/bases/stagedtimestep.jl +++ b/src/bases/stagedtimestep.jl @@ -9,7 +9,7 @@ N: the number of stages. NN: the number of stages squared Each time step has intermediary stages given by the vertor c in a Butcher tableau (A,b,c) """ -struct StagedTimeStep{T, N, NN, I} +struct StagedTimeStep{T, N, NN, I} <: AbstractTimeBasisFunction Δt :: T Nt :: I c :: SVector{N,T} diff --git a/src/bases/tensorbasis.jl b/src/bases/tensorbasis.jl index fe4509558..a13ea7827 100644 --- a/src/bases/tensorbasis.jl +++ b/src/bases/tensorbasis.jl @@ -23,7 +23,13 @@ end temporalbasis(s::SpaceTimeBasis) = s.time -⊗(a, b) = SpaceTimeBasis(a,b) +⊗(s, t) = SpaceTimeBasis(s::AbstractSpace,t::AbstractTimeBasisFunction) + +function ⊗(ds::BEAST.DirectProductSpace, t::AbstractTimeBasisFunction) + r = [s⊗t for s in ds.factors] + return DirectProductSpace(r) +end + numfunctions(S::SpaceTimeBasis) = numfunctions(S.space) * numfunctions(S.time) scalartype(st::SpaceTimeBasis) = promote_type(scalartype(st.space), scalartype(st.time))