Walt Brainerd wrote:
>
> Walt Brainerd wrote:
> >
> > Aleksandar Donev wrote:
> >
> > > The F restrictions say that:
> > > "All dummy argument arrays shall be assumed-shape-arrays"
> > > How does one than link Fortran 77 routines into F. These are usually
> > > declared as assumed size arrays (with *)?
> >
> > This should be OK if you are calling an f77 routine from F
> > as the requirement is on a dummy.
>
> That was a stupid thing to say. F requires an interface to
> call the g77 routine and the interface probably doesn't allow
> the assumed-shape dummy spec (You might get away with lying,
^^^^^ I think you mean size here
> but that is not a good situation.)
As I understand it (and I could be wrong, or things could have changed in the
three years since I looked at this), the _professional_ version of F allows assumed
size declarations in the interface block of an external procedure (but only there).
This allows the linking of Fortran 77 and C routines. But the free _educational_
version of F does not, and I never succeeded in getting around that by lying.
Bill
--
William F. Mitchell
Mathematical and Computational Sciences Division
National Institute of Standards and Technology
[log in to unmask] http://math.nist.gov/~mitchell
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|