Commit 60059770 authored by Junchao Zhang's avatar Junchao Zhang
Browse files

Add basic (non)contiguous subarray support

The compile time constant MPI_SUBARRAYS_SUPPORTED is changed to true now.

To test if a subarray is contiguous, one may use CFI_is_contiguous(cdesc). But note that
CFI_is_contiguous(cdesc) is only applicable to arrays. When cdesc is a descripitor for a scalar,
CFI_is_contiguous(cdesc) returns false. But apparently, scalars are contiguous in MPI's viewpoint.
So we add a check against scalars.

No review since F08 binding is experimental now.
parent 59acd452
......@@ -136,7 +136,7 @@ type(MPI_Message),parameter :: MPI_MESSAGE_NO_PROC = MPI_Message(1811939328)
! Fortran Support Method Specific Constants
! A.1.1 p. 664
logical,parameter :: MPI_SUBARRAYS_SUPPORTED = .false.
logical,parameter :: MPI_SUBARRAYS_SUPPORTED = .true.
logical,parameter :: MPI_ASYNC_PROTECTS_NONBLOCKING = .true. ! Value differs from mpif.h
! Variable Address Size
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment