Skip to content

Commit

Permalink
Fix DeviceExtrudedFiniteDifferenceGrid printing
Browse files Browse the repository at this point in the history
  • Loading branch information
charleskawczynski committed Dec 25, 2024
1 parent 9b68941 commit b5816bc
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/Spaces/extruded.jl
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,17 @@ function Base.show(io::IO, space::ExtrudedFiniteDifferenceSpace)
":",
)
print(iio, " "^(indent + 2), "context: ")
hspace = Spaces.horizontal_space(space)
Topologies.print_context(iio, Spaces.topology(hspace).context)
println(iio)
println(iio, " "^(indent + 2), "horizontal:")
println(iio, " "^(indent + 4), "mesh: ", Spaces.topology(hspace).mesh)
println(iio, " "^(indent + 4), "quadrature: ", quadrature_style(hspace))
println(iio, " "^(indent + 2), "vertical:")
print(iio, " "^(indent + 4), "mesh: ", vertical_topology(space).mesh)
grid = Spaces.grid(space)
if !(grid isa Grids.DeviceExtrudedFiniteDifferenceGrid)
hspace = Spaces.horizontal_space(space)
Topologies.print_context(iio, Spaces.topology(hspace).context)
println(iio)
println(iio, " "^(indent + 2), "horizontal:")
println(iio, " "^(indent + 4), "mesh: ", Spaces.topology(hspace).mesh)
println(iio, " "^(indent + 4), "quadrature: ", quadrature_style(hspace))
println(iio, " "^(indent + 2), "vertical:")
print(iio, " "^(indent + 4), "mesh: ", vertical_topology(space).mesh)
end
end

quadrature_style(space::ExtrudedFiniteDifferenceSpace) =
Expand Down

0 comments on commit b5816bc

Please sign in to comment.