Mentions légales du service

Skip to content

madmpi: fix MPI_Cart_shift for cases out of a non-periodic mesh

Philippe SWARTVAGHER requested to merge pswartva/pm2:mpi_cart_shift into master

MPI 4.0 states "In the case of an end-off shift, the value MPI_PROC_NULL may be returned in rank_source or rank_dest, indicating that the source or the destination for the shift is out of range." Before this commit, an error was raised in mpi_cart_rank().

Spotted when executing Sw4lite, debugged with example provided on page https://rookiehpc.org/mpi/docs/mpi_cart_shift/index.html.

Merge request reports