Re: amber-developers: fortran 90/95 question

From: Carlos Simmerling <carlos.csb.sunysb.edu>
Date: Tue, 30 Mar 2004 11:44:01 -0700

that's odd, I have always put in the parenthesis
in a fortran subroutine call, even if there are no arguments.
I've never had a problem.
carlos

----- 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