Re: amber-developers: fortran 90/95 question

From: Robert Duke <rduke.email.unc.edu>
Date: Tue, 30 Mar 2004 12:23:44 -0700

Jim -
If it were my problem I would read the mixed language programming sections
for both language implementations, and then do assembler dumps of sample
code both ways. I cannot imagine that there is supposed to be a
difference
between "call sub" and "call sub()", and I use both because I have written
a
lot of c. I would point out that I would not trust ifort 8 to be a
particularly correct implementation of any language standard at the moment
-
it is a mess (just look at the bug fixes they are releasing every couple
of
weeks, and notice how they keep breaking something else).
Regards - Bob
----- Original Message -----
From: "James W. Caldwell" <jimc.stanford.edu>
To: <amber-developers.scripps.edu>
Sent: Tuesday, March 30, 2004 1:45 PM
Subject: amber-developers: fortran 90/95 question


> In the sander8 code I find constructs like:
> ...
> call sub()
> ...
> subroutine sub()
> some code
> return
> end subroutine sub
>
> While I'm familiar (sorta) with the empty "()" of C, I'm completely
> puzzled why this would be used in Fortran. The reason I'm curious
> is that this construct causes problems in VisualStudio.Net mixed
> C and Fortran (Intel ifort) programing (I'm supposed to be melding
> Sander with the Folding.Home supervisor code).
>
> When the "()" are in, the program crashes when "sub" is called.
> If I simply remove "()" all is fine.
>
> Comments?
>
> thanks,
> jim
>
> --
> James W. Caldwell 650-724-5322
> Department of Chemistry
> Clark Center, S2.2, Rm S294
> Stanford University
> Stanford, CA 94305-5447
>
>
Received on Wed Apr 05 2006 - 23:50:03 PDT
Custom Search