[MPIWG Fortran] Another MPI_SIZEOF question

Bill Long longb at cray.com
Thu Jun 12 14:37:34 CDT 2014


On Jun 12, 2014, at 2:22 PM, Jeff Squyres (jsquyres) <jsquyres at cisco.com> wrote:

> On Jun 10, 2014, at 4:55 PM, William Gropp <wgropp at illinois.edu> wrote:
> 
>> On SIZEOF, the language in the standard for the argument is 
>> 
>> a Fortran variable of numeric intrinsic type (choice)
>> 
>> [snip]
>> Thus, I believe that MPI_SIZEOF has the same choice parameter requirements of the communication routines such as MPI_SEND.
> 
> Quick question on this: (I don't think any of us disagree -- this language includes both scalars and arrays) Does this include logicals and characters?  The language says *numeric* intrinsic type.
> 

The Fortran language is unambiguous on this issue:


"Each intrinsic type is classified as a numeric type or a nonnumeric type. The numeric types are integer, real, and complex. The nonnumeric intrinsic types are character and logical."

I assumed that is what was meant here.  

Cheers,
Bill


> Technically, a character and a logical have numerical values, but that's not how they're generally used.
> 
> Bill: do you remember the intent of the word "numeric" here?
> 
> -- 
> Jeff Squyres
> jsquyres at cisco.com
> For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/
> 
> _______________________________________________
> mpiwg-fortran mailing list
> mpiwg-fortran at lists.mpi-forum.org
> http://lists.mpi-forum.org/mailman/listinfo.cgi/mpiwg-fortran

Bill Long                                                                       longb at cray.com
Fortran Technical Suport  &                                  voice:  651-605-9024
Bioinformatics Software Development                     fax:  651-605-9142
Cray Inc./ Cray Plaza, Suite 210/ 380 Jackson St./ St. Paul, MN 55101





More information about the mpiwg-fortran mailing list