MDN201 old-mpi-module
warning opt-inuse mpi instead of use mpi_f08.
Why
The mpi module gives only partial argument checking (handles are plain integers, buffers are untyped); mpi_f08 provides typed handles (type(MPI_Comm) ...) and optional ierror, so the compiler catches mismatched arguments.
Reported
fortran
use mpiPreferred
fortran
use mpi_f08Suppressing
For one occurrence, with the reason on the same line (or alone on the line before the statement):
fortran
! fobis: ignore[MDN201] <why this occurrence is fine>For the whole project, ignore = MDN201 in the fobos [lint] section.
References
Sections of the shipped knowledge packs behind this rule:
mpi:ch17-language-bindings#anti-patterns(fobis kb show mpi:ch17-language-bindings#anti-patterns)
Equivalent
Fortitude rule MOD201 (see Lint Rules).