Fortran 90 creating an array of unknown size

  • Topic: Fortran 
  • Thread starter Thread starter max2112
  • Start date Start date
  • Tags Tags
    Array Fortran
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
3 replies · 15K views
Physics news on Phys.org
Summit like this:

Code:
subroutine(/arguments/)

real,allocatable :: array(:)

/code/

allocate ( array(x) )

/code/

deallocate ( array )

return