problem with understanding (array)

Tobias Burnus burnus@net-b.de
Mon Aug 23 13:35:00 GMT 2010


  On 08/23/2010 03:19 PM, Tim Prince wrote:
> On 8/23/2010 5:40 AM, anton_helm wrote:
>> Maybe a short snapshot for understanding:
>> MAIN PROGRAM
>> :
>> integer*8 part_ind(N_p_t_max)
>> :
>> CALL profile(x,y,z, part_ind)
>> :
>> END MAIN PROGRAM

The problem is in the ":" parts: First, it is always there where the 
omissions are; secondly, depending on the omissions the program can be 
valid.

Additionally, do not re-type the program but paste the true program. I 
doubt that it uses "MAIN PROGRAM" because that the wrong syntax.

Thus, it is best to create a minimal program showing the error and not 
some explanation. The chance that the problem lies there where you think 
is low as otherwise you would probably have found it already.

> You don't show what you mean by "Set as global."  That's probably the 
> issue; you would need some declaration of it in each subroutine.

I agree with Tim that this is one of the crucial questions, which need 
to be answered - but not the only one.

Tobias

Tobias



More information about the Fortran mailing list