Skip to content

Commit

Permalink
Added functionality for all parallel mesh types
Browse files Browse the repository at this point in the history
  • Loading branch information
amrueda committed Oct 25, 2024
1 parent 8e08c79 commit 091c107
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/solvers/dgsem_p4est/dg_3d_parallel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@
@muladd begin
#! format: noindent

# Function to output the mpi rank for visualization
function get_element_variables!(element_variables,
mesh::Union{ParallelP4estMesh{3},
ParallelT8codeMesh{3}})
element_variables[:mpi_rank] = mpi_rank()
return nothing
end

function rhs!(du, u, t,
mesh::Union{ParallelP4estMesh{3}, ParallelT8codeMesh{3}}, equations,
boundary_conditions, source_terms::Source,
Expand Down
8 changes: 8 additions & 0 deletions src/solvers/dgsem_tree/dg_parallel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
@muladd begin
#! format: noindent

# Function to output the mpi rank for visualization
function get_element_variables!(element_variables,
mesh::Union{ParallelTreeMesh, ParallelP4estMesh,
ParallelT8codeMesh})
element_variables[:mpi_rank] = mpi_rank()
return nothing
end

# Initialize MPI data structures. This works for both the
# `TreeMesh` and the `P4estMesh` and is dimension-agnostic.
function init_mpi_data_structures(mpi_neighbor_interfaces, mpi_neighbor_mortars, n_dims,
Expand Down

0 comments on commit 091c107

Please sign in to comment.