Re: Program on old fortran IV

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Bob


Many thanks for answering.
The problem is that it is difficult to identify the right type of variables they use without going trough the complexity of the program …
They are mixing integer with real all the time and no respect for precision ...
I think that I have no other way to go than the painful one, line by line.

Thanks again and Best regards

JG



> On 30Apr, 2020, at 16:59, Bob Wilkinson <bob.wilkinson@xxxxxxxxxxx> wrote:
> 
> On Wed, Apr 29, 2020 at 01:37:25PM +0000, Joao Martins Correia wrote:
>> Dear Gcc Helpers
>> 
>> I recovered an old scientific program code written in Fortran IV.
>> Still using hollerith assignments - which I think I understand, I can compile it with the many warnings
>> regarding essentially 3 things
>> 
>> The program starts running, properly, reads input files and execute some routines, but then gets stuck with strange huge
>> numbers that have no apparent reason to be there.
>> The problem is in fact that there are no assignment of variable types and there are many commons with different variable names
>> that contribute to the confusion when debugging. Setting “implicit none” creates too many errors, since sometimes is not easy
>> to assign the type of the variable on a code with 30 routines and more than 5000 lines.
> 
> It is many years since I did any FORTRAN programming, but I vaguely
> remember that implicit none could be used on a subroutine by
> subroutine basis (though that is probably compiler-dependent).
> 
> If this works for you, it may make your job easier. I do not like
> implicit ...
> 
> Bob
> -- 
> "We are in the beginning of a mass extinction, and all you can talk
> about is money and fairy tales of eternal economic growth."
>  - Greta Thunberg





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux