Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@
| ukmo-juan-castillo | Juan M. Castillo | Met Office | 2026-03-24 |
| mcdalvi | Mohit Dalvi | Met Office | 2026-06-19 |
| cjohnson-pi | Christine Johnson | Met Office | 2026-06-29 |
| DrTVockerodtMO | Terence Vockerodt | Met Office | 2026-08-17 |
8 changes: 2 additions & 6 deletions infrastructure/source/utilities/halo_comms_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -837,17 +837,13 @@ function generate_redistribution_map(src_indices, tgt_indices, datatype, xmap) &
redist = 0
#else
type(xt_redist) :: redist
type(xt_idxlist) :: src_idxlist, tgt_idxlist
integer(i_def), allocatable :: src_offsets(:)
integer(i_def), allocatable :: tgt_offsets(:)
integer(i_def) :: i
integer(i_def) :: datatype_mpi_val

if( global_mpi%is_comm_set() )then
! create decomposition descriptors
src_idxlist = xt_idxvec_new( src_indices, size(src_indices) )
tgt_idxlist = xt_idxvec_new( tgt_indices, size(tgt_indices) )

allocate(src_offsets( size(src_indices) ))
allocate(tgt_offsets( size(tgt_indices) ))

Expand All @@ -860,7 +856,7 @@ function generate_redistribution_map(src_indices, tgt_indices, datatype, xmap) &
end do

datatype_mpi_val = datatype%get_datatype_mpi_val()
redist = xt_redist_p2p_off_new(xmap, src_offsets,tgt_offsets, datatype_mpi_val)
redist = xt_redist_p2p_off_new(xmap, src_offsets, tgt_offsets, datatype_mpi_val)

deallocate(src_offsets)
deallocate(tgt_offsets)
Expand Down Expand Up @@ -903,7 +899,7 @@ function generate_exchange_map(src_indices, tgt_indices) result(xmap)
! generate exchange map
comm = global_mpi%get_comm()
xmap = xt_xmap_dist_dir_new( src_idxlist, tgt_idxlist, &
comm%get_comm_mpi_val() )
comm%get_comm_mpi_val() )
call xt_idxlist_delete(tgt_idxlist)
call xt_idxlist_delete(src_idxlist)
else
Expand Down
Loading