ALLOCATABLE_ARRAY
Allocatable Arrays as Output Arguments


ALLOCATABLE_ARRAY is a FORTRAN90 program which demonstrates how a main program can declare an allocatable array, which is then passed to a subroutine which allocates it, initializes it, and returns it to the calling program for further use.

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Languages:

ALLOCATABLE_ARRAY is available in a C version and a C++ version and a FORTRAN90 version.

Related Data and Programs:

F90, FORTRAN90 programs which illustrate the use of various FORTRAN90 features.

GFORTRAN, FORTRAN90 programs which includes examples of the use of the GFORTRAN compiler with FORTRAN90 code.

Reference:

  1. Jeanne Adams, Walter Brainerd, Jeanne Martin, Brian Smith, Jerrold Wagener,
    Fortran90 Handbook,
    Complete ANSI/ISO Reference,
    McGraw Hill, 1992,
    ISBN: 0-07-000406-4,
    LC: QA76.73.F28.F67.
  2. Ian Chivers, Jane Sleightholme,
    Introduction to Programming with Fortran,
    Springer, 2005,
    ISBN: 1846280532,
    LC: QA76.73.F29.C48.
  3. Miles Ellis, Ivor Philips, Thomas Lahey,
    Fortran90 Programming,
    Addison-Wesley, 1994,
    ISBN: 0-201-54446-6,
    LC: QA76.73.F25E435.
  4. Michael Metcalf,
    Fortran95/2003 Explained,
    Oxford, 2004,
    ISBN: 0198526938,
    LC: QA76.73.F235.M48.
  5. Larry Nyhoff, Sanford Leestma,
    Introduction to Fortran90 for Engineers and Scientists,
    Prentice-Hall, 1996,
    ISBN: 0135052157,
    LC: QA76.73.F25N925.
  6. James Ortega,
    An Introduction to FORTRAN90 for Scientific Computing,
    Oxford, 1994,
    ISBN: 0-19-517213-2,
    LC: QA76.73.O75.
  7. GNU,
    GFORTRAN Reference Manual.
  8. GNU,
    G95 Reference Manual.
  9. IBM Corporation,
    XLF Language Reference Manual
  10. Intel Corporation,
    Intel Fortran Language Reference.

Examples and Tests:

You can go up one level to the FORTRAN90 source codes.


Last revised on 27 January 2014.