Skip to content

Commit

Permalink
fix: error message to match the routine name
Browse files Browse the repository at this point in the history
  • Loading branch information
hkershaw-brown committed Nov 8, 2024
1 parent 69ff3c9 commit d0892c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assimilation_code/modules/utilities/mpi_utilities_mod.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1475,7 +1475,7 @@ subroutine all_reduce_min_max(min_var, max_var, num_elements)

if ( .not. module_initialized ) then
write(errstring, *) 'initialize_mpi_utilities() must be called first'
call error_handler(E_ERR,'broadcast_minmax', errstring, source)
call error_handler(E_ERR,'all_reduce_min_max', errstring, source)
endif

call mpi_allreduce(MPI_IN_PLACE, min_var, num_elements, datasize, MPI_MIN, get_dart_mpi_comm(), errcode)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1475,7 +1475,7 @@ subroutine all_reduce_min_max(min_var, max_var, num_elements)

if ( .not. module_initialized ) then
write(errstring, *) 'initialize_mpi_utilities() must be called first'
call error_handler(E_ERR,'broadcast_minmax', errstring, source)
call error_handler(E_ERR,'all_reduce_min_max', errstring, source)
endif

call mpi_allreduce(MPI_IN_PLACE, min_var, num_elements, datasize, MPI_MIN, get_dart_mpi_comm(), errcode)
Expand Down

0 comments on commit d0892c4

Please sign in to comment.