Skip to content

Commit

Permalink
update DofInterpolate to new CSM mesh interface
Browse files Browse the repository at this point in the history
  • Loading branch information
krcools committed Mar 15, 2023
1 parent 29786d0 commit 491c1fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bases/basis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export ×

function Base.:+(x::AbstractSpace...)
T = scalartype(x...)
return DirectProductSpace{T}([x...])
return DirectProductSpace{T, AbstractSpace}([x...])
end

cross(a::Space{T}, b::Space{T}) where {T} = DirectProductSpace{T,Space{T}}(Space{T}[a,b])
Expand Down
4 changes: 2 additions & 2 deletions src/interpolation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function DofInterpolate(basis::LagrangeBasis, field)

cell = cells(basis.geo)[cellid]

tria = chart(basis.geo, cell)
tria = chart(basis.geo, cellid)

vid = cell[refid]

Expand Down Expand Up @@ -58,7 +58,7 @@ function DofInterpolate(basis::RTBasis, field)

edge = simplex(basis.geo.vertices[[v1,v2]]...)
t = tangents(center(edge),1)
tria = chart(basis.geo, cell)
tria = chart(basis.geo, cellid)

n = normal(center(tria))

Expand Down

0 comments on commit 491c1fb

Please sign in to comment.