Skip to content

Commit fa0239e

Browse files
committed
fixup! Add HeterogenousContainer
1 parent 410ee91 commit fa0239e

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

src/solvers/dgsem_p4est/containers.jl

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ mutable struct P4estElementContainer{NDIMS, RealT <: Real, uEltype <: Real, NDIM
1212
ArrayNDIMSP3 <: DenseArray{RealT, NDIMSP3},
1313
VectorRealT <: DenseVector{RealT},
1414
VectoruEltype <: DenseVector{uEltype},
15-
ArrayType, Bool} <:
16-
AbstractContainer
15+
ArrayType} <:
16+
AbstractHeterogeneousContainer{ArrayType}
1717
# Physical coordinates at each node
1818
node_coordinates::ArrayNDIMSP2 # [orientation, node_i, node_j, node_k, element]
1919
# Jacobian matrix of the transformation
@@ -202,8 +202,8 @@ mutable struct P4estInterfaceContainer{NDIMS, uEltype <: Real, NDIMSP2,
202202
IdsVector <: DenseVector{Int},
203203
IndicesVector <:
204204
DenseVector{NTuple{NDIMS, Symbol}},
205-
ArrayType, Bool} <:
206-
AbstractContainer
205+
ArrayType} <:
206+
AbstractHeterogeneousContainer{ArrayType}
207207
u::uArray # [primary/secondary, variable, i, j, interface]
208208
neighbor_ids::IdsMatrix # [primary/secondary, interface]
209209
node_indices::IndicesMatrix # [primary/secondary, interface]
@@ -321,9 +321,8 @@ mutable struct P4estBoundaryContainer{NDIMS, uEltype <: Real, NDIMSP1,
321321
IdsVector <: DenseVector{Int},
322322
IndicesVector <:
323323
DenseVector{NTuple{NDIMS, Symbol}},
324-
uVector <: DenseVector{uEltype}, ArrayType,
325-
Bool} <:
326-
AbstractContainer
324+
uVector <: DenseVector{uEltype}, ArrayType} <:
325+
AbstractHeterogeneousContainer{ArrayType}
327326
u::uArray # [variables, i, j, boundary]
328327
neighbor_ids::IdsVector # [boundary]
329328
node_indices::IndicesVector # [boundary]
@@ -484,8 +483,8 @@ mutable struct P4estMortarContainer{NDIMS, uEltype <: Real, NDIMSP1, NDIMSP3,
484483
IdsVector <: DenseVector{Int},
485484
IndicesVector <:
486485
DenseVector{NTuple{NDIMS, Symbol}},
487-
ArrayType, Bool} <:
488-
AbstractContainer
486+
ArrayType} <:
487+
AbstractHeterogeneousContainer{ArrayType}
489488
u::uArray # [small/large side, variable, position, i, j, mortar]
490489
neighbor_ids::IdsMatrix # [position, mortar]
491490
node_indices::IndicesMatrix # [small/large, mortar]

src/solvers/dgsem_p4est/containers_parallel.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ mutable struct P4estMPIInterfaceContainer{NDIMS, uEltype <: Real, NDIMSP2,
1111
IndicesVector <:
1212
DenseVector{NTuple{NDIMS, Symbol}},
1313
uVector <: DenseVector{uEltype},
14-
ArrayType, Bool} <:
15-
AbstractContainer
14+
ArrayType} <:
15+
AbstractHeterogeneousContainer{ArrayType}
1616
u::uArray # [primary/secondary, variable, i, j, interface]
1717
local_neighbor_ids::VecInt # [interface]
1818
node_indices::IndicesVector # [interface]
@@ -120,8 +120,8 @@ mutable struct P4estMPIMortarContainer{NDIMS, uEltype <: Real, RealT <: Real, ND
120120
NDIMSP2, NDIMSP3,
121121
uArray <: DenseArray{uEltype, NDIMSP3},
122122
uVector <: DenseVector{uEltype},
123-
ArrayType, Bool} <:
124-
AbstractContainer
123+
ArrayType} <:
124+
AbstractHeterogeneousContainer{ArrayType}
125125
u::uArray # [small/large side, variable, position, i, j, mortar]
126126
local_neighbor_ids::Vector{Vector{Int}} # [mortar][ids]
127127
local_neighbor_positions::Vector{Vector{Int}} # [mortar][positions]

0 commit comments

Comments
 (0)