Skip to content

Commit

Permalink
Update src/solvers/dgsem_tree/dg_parallel.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Schlottke-Lakemper <[email protected]>
  • Loading branch information
amrueda and sloede authored Nov 18, 2024
1 parent a01c682 commit fd1db9f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/solvers/dgsem_tree/dg_parallel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ function get_element_variables!(element_variables,
mesh::Union{ParallelTreeMesh, ParallelP4estMesh,
ParallelT8codeMesh},
dg, cache)
element_variables[:mpi_rank] = fill(mpi_rank(),
SVector{nelements(mesh, dg, cache), real(dg)})
element_variables[:mpi_rank] = ones(real(dg), nelements(mesh, dg, cache)) * mpi_rank()
return nothing
end

Expand Down

0 comments on commit fd1db9f

Please sign in to comment.