p-costa / SNaC

A multi-block solver for massively parallel direct numerical simulations (DNS) of fluid flows
MIT License
39 stars 9 forks source link

pencil-to-slab collective for uneven data #6

Closed p-costa closed 3 years ago

p-costa commented 3 years ago

Modify transposing subroutines using ALLTOALLW to accommodate uneven data distribution.

Steps:

  1. create an array of MPI types subarray with the size of the non-uniform local subdomains.
  2. save the extents which account for the non-uniformity of data distribution (passing lo_p(:), n_p(:), lo_s(:), n_s(:)).
p-costa commented 3 years ago

this is now implemented!