FORTRAN Q & A help

Get help on programming - C++, Java, Delphi, etc.
Post Reply
User avatar
KatrynKat
Insane in the Membrane
Posts: 24490
Joined: 18 Jul 2010, 17:42
Location: In my BDSM dungeon - aka Lockdown

FORTRAN Q & A help

Post by KatrynKat »

Heya

For my M.Sc. I have to use a crop model that was written in the 1980's in the old FORTRAN language. For the purpose of the project we are modernising the model so that it will compile using the f95 compiler and not the f77 compiler. I know that this is not a language that many of you have experience with and the rewrite of the model into a new language will only be done after the project has been completed as I am not a programmer and thus it does not form part of the project but will be done as a side job with RRF.

I am asking very nicely that if any of you can help with the questions that I post I will appreciate it very much. Take note that the questions asked are asked here as google didn't help or I don't understand what google is saying. Also, please don't redicule me as I am not a programmer, it just forms part of my studies.

THANKS in advance :)

KatrynKat
"This eBook is displayed using 100% recycled electrons."
User avatar
KatrynKat
Insane in the Membrane
Posts: 24490
Joined: 18 Jul 2010, 17:42
Location: In my BDSM dungeon - aka Lockdown

Re: FORTRAN Q & A help

Post by KatrynKat »

My first question is thus: I have to declare a ton of things that was used in the model but was not written to a file so I don't know what characteristic they are... Is it better then to declare them as REAL or INTEGER?

Thanks
"This eBook is displayed using 100% recycled electrons."
User avatar
KatrynKat
Insane in the Membrane
Posts: 24490
Joined: 18 Jul 2010, 17:42
Location: In my BDSM dungeon - aka Lockdown

Re: FORTRAN Q & A help

Post by KatrynKat »

Q2:

Code: Select all

DO 1 IL=1,13
Get this error message:
Loop variable at (1) cannot be a sub-component
(1) is situated under the second "1" in the statement above.

This is not the only error of this kind, any suggestions???

Thanks
"This eBook is displayed using 100% recycled electrons."
Post Reply