Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Fortran

hard0822
Beginner
386 Views

What should I do if this error occurs when running the Fortran program?

error #6279: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association. [MPI_STATUS_SIZE] 

0 Kudos
2 Replies
Arjen_Markus
Honored Contributor I
367 Views

First of all, it very much looks like you are building the program, not running it :).

Then: you do not show any source code, that makes it difficult to point out what is the cause in the source code. But it would seem that the name "MPI_STATUS_SIZE" is either unknown or not of the right type - in specification statements things are much more limited.

But in any case: we need to see the source code.

0 Kudos
jimdempseyatthecove
Honored Contributor III
249 Views

The offending statement as @Arjen_Markus would be helpful.

MPI_STATUS_SIZE is an integer parameter defined in an MPI module. It is likely that you forgot a USE the appropriate MPI module.

 

Note, IIF your use of MPI_STATUS_SIZE is located within a Fortran include file (*.fi) for the purpose of including COMMON blocks, the source code procedure that includes this file must also have the USE <MPI module here>.

 

Jim Dempsey

0 Kudos
Reply