1
1
struct LevelGrid{
2
2
G <: AbstractExtrudedFiniteDifferenceGrid ,
3
3
L <: Union{Int, PlusHalf{Int}} ,
4
- Q <: Quadratures.QuadratureStyle ,
5
4
} <: AbstractGrid
6
5
full_grid:: G
7
6
level:: L
8
- quadrature_style:: Q
9
7
end
10
8
11
- quadrature_style (levelgrid:: LevelGrid ) = levelgrid. quadrature_style
9
+ quadrature_style (levelgrid:: LevelGrid ) = quadrature_style ( levelgrid. full_grid)
12
10
13
11
level (
14
12
grid:: AbstractExtrudedFiniteDifferenceGrid ,
15
13
level:: Union{Int, PlusHalf{Int}} ,
16
- ) = LevelGrid (grid, level, quadrature_style (grid) )
14
+ ) = LevelGrid (grid, level)
17
15
18
16
topology (levelgrid:: LevelGrid ) = topology (levelgrid. full_grid)
19
17
@@ -22,15 +20,15 @@ topology(levelgrid::LevelGrid) = topology(levelgrid.full_grid)
22
20
# need to extract the weights at a particular level.
23
21
dss_weights (levelgrid:: LevelGrid , _) = dss_weights (levelgrid. full_grid, nothing )
24
22
25
- local_geometry_type (:: Type{LevelGrid{G, L, Q }} ) where {G, L, Q } =
23
+ local_geometry_type (:: Type{LevelGrid{G, L}} ) where {G, L} =
26
24
local_geometry_type (G)
27
25
28
- local_geometry_data (levelgrid:: LevelGrid{<:Any, Int, <:Any } , :: Nothing ) = level (
26
+ local_geometry_data (levelgrid:: LevelGrid{<:Any, Int} , :: Nothing ) = level (
29
27
local_geometry_data (levelgrid. full_grid, CellCenter ()),
30
28
levelgrid. level,
31
29
)
32
30
local_geometry_data (
33
- levelgrid:: LevelGrid{<:Any, PlusHalf{Int}, <:Any } ,
31
+ levelgrid:: LevelGrid{<:Any, PlusHalf{Int}} ,
34
32
:: Nothing ,
35
33
) = level (
36
34
local_geometry_data (levelgrid. full_grid, CellFace ()),
@@ -42,7 +40,6 @@ global_geometry(levelgrid::LevelGrid) = global_geometry(levelgrid.full_grid)
42
40
Adapt. adapt_structure (to, grid:: LevelGrid ) = LevelGrid (
43
41
Adapt. adapt (to, grid. full_grid),
44
42
grid. level,
45
- quadrature_style (grid),
46
43
)
47
44
48
45
# # aliases
0 commit comments