Newsgroups: comp.parallel.mpi
From: Yon Han CHONG <Y.H.Chong@cranfield.ac.uk>
Subject: MPI-2: MPI_TYPE_CREATE_SUBARRAY (Fortran binding issue)
Organization: Cranfield University
Date: Tue, 10 Mar 1998 15:47:15 +0000
Mime-Version: 1.0
Content-Type: text/plain; charset=EUC-KR
Content-Transfer-Encoding: 7bit
Message-ID: <35056083.B5F717B2@cranfield.ac.uk>

In MPI-2 it is defined that the begining of subarrary index should be 
a positive numbers. In C, this does make sense. You do not want to go 
over the boundary. In Fortran, this is restrictive because sometimes 
it is more convient to define an array as following:
   
   integer, parameter :: N=5
   real, dimension(-1:N+2) :: a_local

"a_local" cannot be a subarray since the index start from a negative 
number.

-- 
----------------------------------------------------------------------
Yon Han Chong                     |
Flow Control and Prediction Group | Tel: + 44 1234 750 111 ext. 5420
Cranfield College of Aeronautics  | E-mail: Y.H.Chong@cranfield.ac.uk
Cranfield University              | Fax: + 44 1234 752 149
United Kingdom                    | Mobile: + 44 958 381 395
----------------------------------------------------------------------

