Skip to content

Commit 84ec899

Browse files
committed
temporary changes, to be squashed
1 parent 1cb8774 commit 84ec899

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/Grids/level.jl

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
struct LevelGrid{
22
G <: AbstractExtrudedFiniteDifferenceGrid,
33
L <: Union{Int, PlusHalf{Int}},
4-
Q <: Quadratures.QuadratureStyle,
54
} <: AbstractGrid
65
full_grid::G
76
level::L
8-
quadrature_style::Q
97
end
108

11-
quadrature_style(levelgrid::LevelGrid) = levelgrid.quadrature_style
9+
quadrature_style(levelgrid::LevelGrid) = quadrature_style(levelgrid.full_grid)
1210

1311
level(
1412
grid::AbstractExtrudedFiniteDifferenceGrid,
1513
level::Union{Int, PlusHalf{Int}},
16-
) = LevelGrid(grid, level, quadrature_style(grid))
14+
) = LevelGrid(grid, level)
1715

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

@@ -22,15 +20,15 @@ topology(levelgrid::LevelGrid) = topology(levelgrid.full_grid)
2220
# need to extract the weights at a particular level.
2321
dss_weights(levelgrid::LevelGrid, _) = dss_weights(levelgrid.full_grid, nothing)
2422

25-
local_geometry_type(::Type{LevelGrid{G, L, Q}}) where {G, L, Q} =
23+
local_geometry_type(::Type{LevelGrid{G, L}}) where {G, L} =
2624
local_geometry_type(G)
2725

28-
local_geometry_data(levelgrid::LevelGrid{<:Any, Int, <:Any}, ::Nothing) = level(
26+
local_geometry_data(levelgrid::LevelGrid{<:Any, Int}, ::Nothing) = level(
2927
local_geometry_data(levelgrid.full_grid, CellCenter()),
3028
levelgrid.level,
3129
)
3230
local_geometry_data(
33-
levelgrid::LevelGrid{<:Any, PlusHalf{Int}, <:Any},
31+
levelgrid::LevelGrid{<:Any, PlusHalf{Int}},
3432
::Nothing,
3533
) = level(
3634
local_geometry_data(levelgrid.full_grid, CellFace()),
@@ -42,7 +40,6 @@ global_geometry(levelgrid::LevelGrid) = global_geometry(levelgrid.full_grid)
4240
Adapt.adapt_structure(to, grid::LevelGrid) = LevelGrid(
4341
Adapt.adapt(to, grid.full_grid),
4442
grid.level,
45-
quadrature_style(grid),
4643
)
4744

4845
## aliases

0 commit comments

Comments
 (0)