Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/bases/stagedtimestep.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
8 changes: 7 additions & 1 deletion src/bases/tensorbasis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
Loading