scivision / fortran2018-examples

Fortran 2018 standard examples with broad applications
MIT License
398 stars 68 forks source link

use mpi_f08 module, etc #4

Closed jeffhammond closed 3 years ago

jeffhammond commented 3 years ago

1) use mpi_f08 is the right way to use MPI with Fortran 2018 remove external declarations in favor of use+only 2) implement total ordering on process rank print 3) remove error checking because no errors are handled in a way that justifies it. MPI errors are fatal by default so "if (error) stop" is pointless. 4) me is a more obvious rank variable than "i".

Signed-off-by: Jeff Hammond jeff.science@gmail.com

scivision commented 3 years ago

Thanks, I had been waiting for MS-MPI to update to the 3.x API but it seems we're tired of waiting, so it's good to move forward with mpi_f08.

scivision commented 3 years ago

Since coarrays are an important enough topic by itself, and MPI is intertwined with Coarrays and there are particular factors getting/finding/using MPI, I moved mpi/ and coarray/ to its own repo: https://github.com/scivision/fortran-coarray-mpi-examples