Skip to content

Commit

Permalink
fix show
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasloan25 committed Dec 4, 2023
1 parent 30a42ec commit 76932be
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/Spaces/spectralelement.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,21 @@ function Base.show(io::IO, space::AbstractSpectralElementSpace)
if hasfield(typeof(grid(space)), :topology)
# some reduced spaces (like slab space) do not have topology
print(iio, " "^(indent + 2), "context: ")
Topologies.print_context(iio, grid(space).topology.context)
Topologies.print_context(iio, Spaces.topology(grid(space)).context)
println(iio)
println(iio, " "^(indent + 2), "mesh: ", grid(space).topology.mesh)
println(
iio,
" "^(indent + 2),
"mesh: ",
Spaces.topology(grid(space)).mesh,
)
end
print(iio, " "^(indent + 2), "quadrature: ", grid(space).quadrature_style)
print(
iio,
" "^(indent + 2),
"quadrature: ",
Spaces.quadrature_style(grid(space)),
)
end


Expand Down

0 comments on commit 76932be

Please sign in to comment.