[SciPy-dev] compilation with fort77

Sturla Molden sturla at molden.no
Thu Feb 4 05:40:52 EST 2010


>>
>>
>>
>> the problem is that fort77 cannot deal with those variable sized
>> input arguments:
>>
>>      SUBROUTINE mvnun(d, n, lower, upper, means, covar, maxpts,
>>     &                   abseps, releps, value, inform)
>> ...
>>      integer n, d, infin(d), maxpts, inform, tmpinf
>>      double precision lower(d), upper(d), releps, abseps,
>>     &                 error, value, stdev(d), rho(d*(d-1)/2),
>>     &                 covar(d,d),
>>     &                 nlower(d), nupper(d), means(d,n), tmpval
>>      integer i, j
>>
>> Could some Fortran expert please help me to make it fort77  
>> compatible?

The code posted here (I haven't looked in SVN) looks like valid  
Fortran 77 to me. Dummy arguments can have variable size. f2c might  
not accept it because variable-size arrays are not supported in C89,  
and the Fortran to C conversion is rather primitive.

Sturla





>
> This file is using some F90/F95 - I am not sure what the policy is on
> this point, but don't think we want to guarantee that we will never  
> use
> fortran > F77.
>
> Can't you get gfortran running on your platform ? Cross-compiling
> gfortran  for your platform should not be difficult
>
> David
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev



More information about the SciPy-Dev mailing list