Skip to content

Commit

Permalink
Fix for broadcasting.
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCan committed Oct 4, 2023
1 parent 2e0f348 commit ea115cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/solvers/dgmulti/dg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,9 @@ function calc_volume_integral!(du, u, mesh::DGMultiMesh,
@threaded for e in eachelement(mesh, dg, cache)
flux_values = local_values_threaded[Threads.threadid()]
for i in eachdim(mesh)
flux_values .= flux.(view(u_values, :, e), i, equations)
for j in eachindex(flux_values)
flux_values[j] = flux(u_values[j, e], i, equations)
end
for j in eachdim(mesh)
apply_to_each_field(mul_by_accum!(weak_differentiation_matrices[j],
dxidxhatj[i, j][1, e]),
Expand Down

0 comments on commit ea115cf

Please sign in to comment.