From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,89d280850f5d8df X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-21 18:48:57 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Passing Unconstrained Arrays from FORTRAN to an Ada95 subunit Date: 21 Jul 2002 18:48:57 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0207211748.661a1be3@posting.google.com> References: <5489a352.0207191657.5fac87a8@posting.google.com> NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1027302537 9773 127.0.0.1 (22 Jul 2002 01:48:57 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 22 Jul 2002 01:48:57 GMT Xref: archiver1.google.com comp.lang.ada:27290 Date: 2002-07-22T01:48:57+00:00 List-Id: kcarron@belcan.com (Karen Carron) wrote in message news:<5489a352.0207191657.5fac87a8@posting.google.com>... > What I have found is that the offset in referencing individual array > elements in FORTRAN is 1 (ex. the first element is referenced with a > subscript of value 1) but in Ada it is 0. This is causing a problem > since the subscripts are variables in a fortran common. What you are doing cannot possibly work. You need to read the RM section on interfacing to Fortran.