1

MPI 标准声明虚拟参数buf如下:

<type> buf(*)

我知道它作为一个整体声明buf为具有某种类型的数组。但我以前从未见过<type>在 Fortran 的声明中使用过。任何人都可以向我解释或让我参考显示语法的 Fortran 标准吗?

4

1 回答 1

4

This is explained in the MPI Standard itself in section 2.5.5 on page 16 lines 17 to 22:

MPI functions sometimes use arguments with a choice (or union) data type. Distinct calls to the same routine may pass by reference actual arguments of different types. The mechanism for providing such arguments will differ from language to language. For Fortran with the include file mpif.h or the mpi module, the document uses <type> to represent a choice variable

于 2013-09-30T01:30:36.357 回答