Skip to content

Commit 934dd12

Browse files
committed
Fix indices
1 parent 3508a48 commit 934dd12

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/solvers/dgsem_p4est/dg_2d_subcell_limiters.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function calc_mortar_flux_low_order!(surface_flux_values,
131131
# to be scaled by a factor of 2 to obtain the flux of the large element.
132132
multiply_add_to_node_vars!(surface_flux_values,
133133
-2 * factor /
134-
mortar_weights_sums[j_mortar, 3],
134+
mortar_weights_sums[j_mortar, 2],
135135
flux, equations, dg,
136136
j, large_direction, large_element)
137137
end
@@ -162,7 +162,7 @@ function calc_mortar_flux_low_order!(surface_flux_values,
162162
# Upper element
163163
multiply_add_to_node_vars!(surface_flux_values,
164164
factor /
165-
mortar_weights_sums[i_mortar, 2],
165+
mortar_weights_sums[i_mortar, 1],
166166
flux, equations, dg,
167167
i, small_direction, upper_element)
168168
# Large element
@@ -175,7 +175,7 @@ function calc_mortar_flux_low_order!(surface_flux_values,
175175
# to be scaled by a factor of 2 to obtain the flux of the large element.
176176
multiply_add_to_node_vars!(surface_flux_values,
177177
-2 * factor /
178-
mortar_weights_sums[j_mortar, 3],
178+
mortar_weights_sums[j_mortar, 2],
179179
flux, equations, dg,
180180
j, large_direction, large_element)
181181
end

src/solvers/dgsem_tree/dg_2d_subcell_limiters.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ function calc_mortar_flux_low_order!(surface_flux_values,
11141114
# Upper element
11151115
multiply_add_to_node_vars!(surface_flux_values,
11161116
factor /
1117-
mortar_weights_sums[i, 2],
1117+
mortar_weights_sums[i, 1],
11181118
flux, equations, dg,
11191119
i, direction_small, upper_element)
11201120
# Large element

0 commit comments

Comments
 (0)