Compile error in KIVA 3v with gfortran
I'm trying to build kiva 3v on OS X using gfortran. I had the same code compiling with intel fortran compiler, using XCode so I didn't see compiler options ifort was using.
Anyway, with gfortran I get the follow error I can't seem to find much information on: Code:
begin.F:51.18: http://gist.github.com/189768 The second looks like this: Code:
subroutine second (tnow) I'm at a loss of how to proceed, any advice is appreciated! |
I'm hoping someone could take another look at this - the following program will show what's happening.
Code:
program sec Code:
rob@cosmo test $ gfortran second.F However I'm looking for a way to modify just the subroutine to get it working - as second() is used all over the place in kiva. Any thoughts? Thanks again! |
Subroutine Second
I guess you have solved your problem by now, but here goes anyway:
The gfortran compiler thinks that Second() is an Intrinsic function, (and it probably is for gfortran.) Solution: Rename the subroutine in second.f to be something else, say, Ksecond. Also rename the Calls to Second to be Call Ksecond. That fixes it. |
All times are GMT -4. The time now is 04:34. |