Skip to content

Commit

Permalink
apply formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwinters5000 committed Oct 29, 2024
1 parent cca0674 commit 5317195
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
13 changes: 8 additions & 5 deletions src/solvers/dgsem_p4est/dg_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ function create_cache(mesh::Union{P4estMesh{2}, T8codeMesh{2}}, equations,
u_threaded = MA2d[MA2d(undef) for _ in 1:Threads.nthreads()]

(; fstar_primary_upper_threaded, fstar_primary_lower_threaded,
fstar_secondary_upper_threaded, fstar_secondary_lower_threaded,
u_threaded)
fstar_secondary_upper_threaded, fstar_secondary_lower_threaded,
u_threaded)
end

# index_to_start_step_2d(index::Symbol, index_range)
Expand Down Expand Up @@ -564,8 +564,10 @@ end
flux_plus_noncons_secondary = flux + 0.5f0 * noncons_secondary

# Copy to buffer
set_node_vars!(fstar_primary[position_index], flux_plus_noncons_primary, equations, dg, node_index)
set_node_vars!(fstar_secondary[position_index], flux_plus_noncons_secondary, equations, dg, node_index)
set_node_vars!(fstar_primary[position_index], flux_plus_noncons_primary, equations,
dg, node_index)
set_node_vars!(fstar_secondary[position_index], flux_plus_noncons_secondary,
equations, dg, node_index)
end

@inline function mortar_fluxes_to_elements!(surface_flux_values,
Expand All @@ -584,7 +586,8 @@ end
element = neighbor_ids[position, mortar]
for i in eachnode(dg)
for v in eachvariable(equations)
surface_flux_values[v, i, small_direction, element] = fstar_primary[position][v, i]
surface_flux_values[v, i, small_direction, element] = fstar_primary[position][v,
i]
end
end
end
Expand Down
3 changes: 2 additions & 1 deletion src/solvers/dgsem_p4est/dg_2d_parabolic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,8 @@ end
element = neighbor_ids[position, mortar]
for i in eachnode(dg)
for v in eachvariable(equations)
surface_flux_values[v, i, small_direction, element] = fstar_primary[position][v, i]
surface_flux_values[v, i, small_direction, element] = fstar_primary[position][v,
i]
end
end
end
Expand Down

0 comments on commit 5317195

Please sign in to comment.