Skip to content

Commit

Permalink
Merge pull request #1569 from CliMA/js/levelgrid
Browse files Browse the repository at this point in the history
Js/levelgrid
  • Loading branch information
juliasloan25 authored Dec 4, 2023
2 parents 76ebe85 + 25769da commit a269f6d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/Grids/level.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ level(

topology(levelgrid::LevelGrid) = topology(levelgrid.full_grid)

local_dss_weights(grid::LevelGrid) = local_dss_weights(grid.full_grid)

local_geometry_data(levelgrid::LevelGrid{<:Any, Int}, ::Nothing) = level(
local_geometry_data(levelgrid.full_grid, CellCenter()),
levelgrid.level,
Expand Down
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 a269f6d

Please sign in to comment.