problem with understanding (array)

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


  On 08/23/2010 04:10 PM, anton_helm wrote:
> Well. I can't send you the total source code, cause it's around 4MB
> and I'm only editing it.
> With the ":" I tried to explain the that this are the part's which
> don't read, write or change anything on the parameter 'part_ind'.

Well, it is fine to leave part out - but you should not leave the 
declaration out - in this case part_ind. Additionally, as written, you 
did not paste the code but you typed it in. One can easily make typos 
doing so - as you did. You wrote:
   MAIN PROGRAM
instead of
   PROGRAM MAIN

For your problem this typo does not matter - but there might be other 
typos which are essential.

> "Set as global" ->  It's added in a COMMON-Block and this Common-Block
> is included in all subroutines.

As  written, it helps to provide all declarations - they can be crucial. 
As currently written, the code looks OK - but as it is not working, some 
wrong definition must be in the parts you have not shown.

>> integer*8 isn't f90

To elaborate: Fortran as defined by ANSI or by ISO does not allow the syntax
   INTEGER*8
though it is supported by most compilers. The syntax is typical for 
Fortran 77 code. The proper Fortran 90 way of doing it is to use 
something like
   integer, parameter :: my_long_int = selected_int_kind(15)
   integer(kind=my_long_int) ::
For most compilers, the number is the byte size, thus many simply write
   integer(8) ::
but that's also not portable.

But I do not think that this has anything to do with the problem you are 
seeing.

> - intel/64/opt/11.1

Wrong mailing list. You wrote to the GNU Fortran (gfortran) mailing list 
which is about that compiler, which is part of the GNU Compiler 
Collection (GCC).

If you use the Intel Compiler, please use either their forum at 
http://software.intel.com/en-us/forums/ or the general Fortran news 
group comp.lang.fortran - available at any Net News Server (NNTP) or at 
http://groups.google.com/group/comp.lang.fortran/  (via Google one 
unfortunately sees a lot of spam, which other news servers have filtered).

Tobias



More information about the Fortran mailing list