Skip to content

Commit 08b5759

Browse files
More accurate comments MPI Mortar Containers
1 parent 19ab082 commit 08b5759

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/solvers/dgsem_p4est/containers_parallel.jl

+8-8
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
mutable struct P4estMPIInterfaceContainer{NDIMS, uEltype <: Real, NDIMSP2} <:
99
AbstractContainer
10-
u::Array{uEltype, NDIMSP2} # [primary/secondary, variable, i, j, interface]
11-
local_neighbor_ids::Vector{Int} # [interface]
10+
u::Array{uEltype, NDIMSP2} # [primary/secondary, variable, i, j, interface]
11+
local_neighbor_ids::Vector{Int} # [interface]
1212
node_indices::Vector{NTuple{NDIMS, Symbol}} # [interface]
13-
local_sides::Vector{Int} # [interface]
13+
local_sides::Vector{Int} # [interface]
1414

1515
# internal `resize!`able storage
1616
_u::Vector{uEltype}
@@ -89,11 +89,11 @@ end
8989
# the normal vectors on the surface of the small elements for each mortar.
9090
mutable struct P4estMPIMortarContainer{NDIMS, uEltype <: Real, RealT <: Real, NDIMSP1,
9191
NDIMSP2, NDIMSP3} <: AbstractContainer
92-
u::Array{uEltype, NDIMSP3} # [small/large side, variable, position, i, j, mortar]
93-
local_neighbor_ids::Vector{Vector{Int}} # [mortar]
94-
local_neighbor_positions::Vector{Vector{Int}} # [mortar]
95-
node_indices::Matrix{NTuple{NDIMS, Symbol}} # [small/large, mortar]
96-
normal_directions::Array{RealT, NDIMSP2} # [dimension, i, j, position, mortar]
92+
u::Array{uEltype, NDIMSP3} # [small/large side, variable, position, i, j, mortar]
93+
local_neighbor_ids::Vector{Vector{Int}} # [mortar][ids]
94+
local_neighbor_positions::Vector{Vector{Int}} # [mortar][positions]
95+
node_indices::Matrix{NTuple{NDIMS, Symbol}} # [small/large, mortar]
96+
normal_directions::Array{RealT, NDIMSP2} # [dimension, i, j, position, mortar]
9797
# internal `resize!`able storage
9898
_u::Vector{uEltype}
9999
_node_indices::Vector{NTuple{NDIMS, Symbol}}

src/solvers/dgsem_tree/containers_2d.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -941,8 +941,8 @@ end
941941
mutable struct MPIL2MortarContainer2D{uEltype <: Real} <: AbstractContainer
942942
u_upper::Array{uEltype, 4} # [leftright, variables, i, mortars]
943943
u_lower::Array{uEltype, 4} # [leftright, variables, i, mortars]
944-
local_neighbor_ids::Vector{Vector{Int}} # [mortars]
945-
local_neighbor_positions::Vector{Vector{Int}} # [mortars]
944+
local_neighbor_ids::Vector{Vector{Int}} # [mortars][ids]
945+
local_neighbor_positions::Vector{Vector{Int}} # [mortars][positions]
946946
# Large sides: left -> 1, right -> 2
947947
large_sides::Vector{Int} # [mortars]
948948
orientations::Vector{Int} # [mortars]

0 commit comments

Comments
 (0)