Skip to content

Commit

Permalink
throw better error message with MPI for TreeMesh1D
Browse files Browse the repository at this point in the history
  • Loading branch information
ranocha committed Jul 15, 2023
1 parent 10e0fa9 commit c680736
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/meshes/tree_mesh.jl
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ function TreeMesh(coordinates_min::NTuple{NDIMS, Real},

# TODO: MPI, create nice interface for a parallel tree/mesh
if mpi_isparallel()
if mpi_isroot() && NDIMS == 3
if mpi_isroot() && NDIMS != 2
println(stderr,
"ERROR: TreeMesh3D does not support parallel execution with MPI")
"ERROR: The TreeMesh supports parallel execution with MPI only in 2 dimensions")
MPI.Abort(mpi_comm(), 1)
end
TreeType = ParallelTree{NDIMS}
Expand Down

0 comments on commit c680736

Please sign in to comment.